About Catalog Site Code Migration to Commerce Server 2007
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
The Catalogs namespace has been rewritten in Commerce Server 2007 to rely completely on managed code. In your site code, search for and replace any instances of Microsoft.CommerceServer.Runtime.Catalogs with Microsoft.CommerceServer.Catalog. Although many of the classes and members within the namespace have stayed the same, there have also been a number of changes. The following table contains a list of obsolete APIs and their replacements in the new Microsoft.CommerceServer.Catalog namespace:
Obsolete or replaced type |
Replacement |
---|---|
CatalogContext.AddCatalogAttribute |
|
CatalogContext.AddDefinitionAttribute |
|
CatalogContext.AddPropertyAttribute |
|
CatalogContext. AddSpecificationSearchClause |
|
CatalogContext.BeginSpecificationSearch |
|
CatalogContext.CatalogNames |
|
CatalogContext.CreateFromConnectionString |
|
CatalogContext.Dispose |
Not applicable. CatalogContext instances no longer have to be disposed. |
CatalogContext.ExportXML |
|
CatalogContext.GetCatalogAttributes |
|
CatalogContext.GetDefinitionAttribute |
|
CatalogContext.GetDefinitionProperties |
|
CatalogContext.GetEnumerationPropertyValues |
|
CatalogContext.GetPropertyAttributes |
|
CatalogContext.GetSearchableProperties |
This method was replaced and now returns a CatalogPropertyCollection instead of a CatalogPropertiesDataSet |
CatalogContext.GetUniqueIdentifierProperties |
This method was replaced and now returns a CatalogPropertyCollection instead of a CatalogPropertiesDataSet |
CatalogContext. GetSpecificationSearchClauses |
|
CatalogContext. GuaranteedSpecificationSearch |
|
CatalogContext.ImportXML |
|
CatalogContext. PerformSpecificationSearch |
|
CatalogContext.RebuildAllCatalogs |
This method was replaced and now returns a RebuildProgress instead of an int. |
CatalogContext.RemoveCatalogAttribute |
|
CatalogContext.RemoveDefinitionAttribute |
|
CatalogContext.RemovePropertyAttribute |
|
CatalogContext. RemoveSpecificationSearchClause |
|
CatalogItem.AncestorCategoryNames |
|
CatalogItem.CannonicalCategoryPath |
|
CatalogItem.ParentCategoryNames |
|
CatalogItem.Dispose |
Not applicable. CatalogItem instances no longer have to be disposed. |
CatalogItem.GetRelatedCategories |
|
CatalogItem.GetRelatedProducts |
|
Category.GetChildCategories |
|
Product.GetVariantProperties |
|
Product.GetVariants |
|
Product.ProductID |
|
ProductCatalog.Dispose |
Not applicable. ProductCatalog instances no longer have to be disposed. |
ProductCatalog.GetCatalogAttributes |
|
ProductCatalog.GetProductVariant |
|
ProductCatalog.GetRebuildProgess |
|
ProductCatalog.GetRootCategories |
|
ProductCatalog.GetRootProducts |
|
ProductCatalog.Languages |
|
ProductCatalog.PropertyNames |
|
ProductCatalog.Rebuild |
This method was replaced and now returns a RebuildProgress instead of an int. |
ProductCatalog.RootCategories |
|
ProductCatalog.RootProducts |
|
ProductCatalog.SpecificationSearchableCategoryNames |
See Also
Other Resources
About Migrating ASP.NET-based Commerce Server 2002 Applications to Commerce Server 2007