Compartir vía


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

AddPropertyToEntity

CatalogContext.AddDefinitionAttribute

AddPropertyToEntity

CatalogContext.AddPropertyAttribute

AddPropertyToEntity

CatalogContext. AddSpecificationSearchClause

AddSearchClause

CatalogContext.BeginSpecificationSearch

BeginSpecificationSearch

CatalogContext.CatalogNames

GetCatalogs

CatalogContext.CreateFromConnectionString

Create

CatalogContext.Dispose

Not applicable. CatalogContext instances no longer have to be disposed.

CatalogContext.ExportXML

ExportXml

CatalogContext.GetCatalogAttributes

AddPropertyToEntity

CatalogContext.GetDefinitionAttribute

GetDefinition

CatalogContext.GetDefinitionProperties

GetDefinition

CatalogContext.GetEnumerationPropertyValues

GetProperty

CatalogContext.GetPropertyAttributes

AddPropertyToEntity

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

SearchClauses

CatalogContext. GuaranteedSpecificationSearch

GuaranteedSearch

CatalogContext.ImportXML

ImportXml

CatalogContext. PerformSpecificationSearch

Search

CatalogContext.RebuildAllCatalogs

This method was replaced and now returns a RebuildProgress instead of an int.

CatalogContext.RemoveCatalogAttribute

RemovePropertyFromEntity

CatalogContext.RemoveDefinitionAttribute

RemovePropertyFromEntity

CatalogContext.RemovePropertyAttribute

RemovePropertyFromEntity

CatalogContext. RemoveSpecificationSearchClause

RemoveSearchClause

CatalogItem.AncestorCategoryNames

AncestorCategories

CatalogItem.CannonicalCategoryPath

CanonicalCategories

CatalogItem.ParentCategoryNames

ParentCategories

CatalogItem.Dispose

Not applicable. CatalogItem instances no longer have to be disposed.

CatalogItem.GetRelatedCategories

RelatedCategories

CatalogItem.GetRelatedProducts

RelatedProducts

Category.GetChildCategories

ChildCategories

Product.GetVariantProperties

GetVariant

Product.GetVariants

Variants

Product.ProductID

ProductId

ProductCatalog.Dispose

Not applicable. ProductCatalog instances no longer have to be disposed.

ProductCatalog.GetCatalogAttributes

GetEntityProperties

ProductCatalog.GetProductVariant

GetVariant

ProductCatalog.GetRebuildProgess

RebuildProgress

ProductCatalog.GetRootCategories

GetRootCategory

ProductCatalog.GetRootProducts

GetRootCategory

ProductCatalog.Languages

AddLanguage or RemoveLanguage

ProductCatalog.PropertyNames

PropertiesInCatalog

ProductCatalog.Rebuild

This method was replaced and now returns a RebuildProgress instead of an int.

ProductCatalog.RootCategories

GetRootCategory

ProductCatalog.RootProducts

GetRootCategory

ProductCatalog.SpecificationSearchableCategoryNames

SpecificationSearchableCategories

See Also

Other Resources

About Migrating ASP.NET-based Commerce Server 2002 Applications to Commerce Server 2007