Class CatalogContentTypeAttribute

Extends the default content type registration with the possibility to associate the content type with a metadata class.

Inheritance
System.Object
CatalogContentTypeAttribute
Namespace: EPiServer.Commerce.Catalog.DataAnnotations
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class CatalogContentTypeAttribute : ContentTypeAttribute
Examples
using EPiServer.Commerce.Catalog.ContentTypes;
using EPiServer.Commerce.Catalog.DataAnnotations;

namespace CodeSamples.EPiServer.Commerce.Catalog.Provider
{
[CatalogContentType(MetaClassName = "WineSKU")]
public class CatalogContentTypeAttributeSample : VariationContent
{
}
}

Constructors

CatalogContentTypeAttribute()

Declaration
public CatalogContentTypeAttribute()

Properties

MetaClassName

Gets or sets the name of the meta class the content type should be associated with.

Declaration
public virtual string MetaClassName { get; set; }
Property Value
Type Description
System.String