1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Loading products from database

Loading products from database

2 posts, 0 answered
  1. Amine
    Amine avatar
    6 posts
    Registered:
    28 Aug 2012
    27 Aug 2012
    Link to this post
    Hi all,

    I am new in Sitefinity, please please i need a full example to show how to load product from database (SQL server), generaly i need to learn how to load informations from database. Thanks in advance.

  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    28 Aug 2012
    Link to this post
    you're going to want to use the Sitefinity API for this. Each content module (Blogs, News, Events, etc) exposes a ContentManager (BlogsManager, NewsManager, EventsManager, etc) that allows you to create, retrieve and edit items in the SF database.

    For sample code on querying products, take a look at this documentation: http://www.sitefinity.com/documentation/documentationarticles/developers-guide/sitefinity-essentials/modules/ecommerce/products/querying-products

    The sidebar navigation on the left exposes more docs and sample code for working with all the other content types: http://www.sitefinity.com/documentation/documentationarticles/developers-guide/sitefinity-essentials/modules

    hope this is helpful!
2 posts, 0 answered