Documentation

Ucommerce includes full API reference documentation and lots of helpful articles to help you build your e-commerce site as effortlessly as possible.

Topics Payment Providers
v7.18

Migrating Catalog Library

In the old days you could access CatalogLibrary via a static accessor:

    
        //CatalogLibrary in Ucommerce 8
        UCommerce.Api.CatalogLibrary
    
    

To grab the new CatalogLibrary use the DI Container:

    using Ucommerce.Api;
    using Ucommerce.Infrastructure;

CatalogLibrary has been ported almost 1-1, but instead of being backed by NHibernate entities loaded from SLQ server, they return Search models queried in the search index. The models are found under the following namespace:

    using Ucommerce.Search.Models;

Please give the catalog library article a read in case you're interested in learning more about Catalog context.