ExtensibleEntityType Enumeration

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Specifies the class of entities that can be extended by adding user-defined properties.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Enumeration ExtensibleEntityType
'Usage
Dim instance As ExtensibleEntityType
public enum ExtensibleEntityType
public enum class ExtensibleEntityType
public enum ExtensibleEntityType

Members

Member name Description
PropertyDefinition Property definition
ProductCatalog Product catalog
InventoryCatalog Inventory catalog
InventorySku Inventory SKU

Remarks

Allows you to customize a specific type of catalog. The enumeration is a value for the ExtensibleEntityType; either InventoryCatalog, InventorySku, ProductCatalog, or PropertyDefinition.

Examples

internal void AddPropertyToCatalogEntity(string propertyName)
{
  this.catalogContext.AddPropertyToEntity(ExtensibleEntityType.ProductCatalog, propertyName);
  /*
   * A possible use case of this method would be to associate vendorids to catalogs
   * This can be achieved by 
   * CatalogProperty property = catalogContext.CreateProperty("VendorId", CatalogDataType.String, 128);
   * catalogContext.AddPropertyToEntity(ExtensibleEntityType.ProductCatalog, "VendorId");
   * ProductCatalog productCatalog = catalogContext.GetCatalog("CatalogName");
   * productCatalog["VendorId"] = "Catalog Vendor Id";
   * productCatalog.Save(); // The "Catalog Vendor Id" is now associated with the product catalog
   */
}

See Also

Reference

Microsoft.CommerceServer.Catalog Namespace