Class BundleContent
Class to store information about bundles
Implements
EPiServer.Data.Entity.IReadOnly<CatalogContentBase>
EPiServer.Data.Entity.IReadOnly
EPiServer.Core.IContent
EPiServer.Core.IContentData
EPiServer.Core.ILocalizable
EPiServer.Core.ILocale
EPiServer.Core.IVersionable
EPiServer.Web.Routing.IRoutable
EPiServer.Security.ISecurable
EPiServer.Core.IChangeTrackable
Inherited Members
Namespace: EPiServer.Commerce.Catalog.ContentTypes
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
[CatalogContentType(GUID = "f20a74d6-5dfe-4116-8243-119c7bfe667f", DisplayName = "Bundle", AvailableInEditMode = false)]
[CLSCompliant(false)]
public class BundleContent : EntryContentBase, IReadOnly<CatalogContentBase>, IReadOnly, IContent, IContentData, ILocalizable, ILocale, IVersionable, IRoutable, ISecurable, IMetaClass, ISearchEngineInformation, IChangeTrackable, ICategorizable, IAssociating, IAssetContainer
Remarks
For more information read the Working with the Catalog as IContent article.
Examples
An example of how to create a Commerce content type:
using EPiServer.Commerce.Catalog.ContentTypes;
using EPiServer.Commerce.Catalog.DataAnnotations;
using EPiServer.Core;
using EPiServer.DataAnnotations;
namespace CodeSamples.EPiServer.Commerce.Catalog.Provider
{
[CatalogContentType]
public class CatalogContentTypeSample : VariationContent
{
[CultureSpecific]
[Tokenize]
[Encrypted]
[UseInComparison]
[IncludeValuesInSearchResults]
[IncludeInDefaultSearch]
[SortableInSearchResults]
public virtual string Description { get; set; }
public virtual int Size { get; set; }
[DecimalSettings(18, 0)]
public virtual decimal Discount { get; set; }
}
}
Constructors
BundleContent()
Declaration
public BundleContent()
Properties
BundleReference
Gets or sets the bundle content reference
Declaration
[IgnoreMetaDataPlusSynchronization]
public virtual ContentReference BundleReference { get; set; }
Property Value
Type | Description |
---|---|
EPiServer.Core.ContentReference |
ClassTypeId
Gets the class type id.
Declaration
public override string ClassTypeId { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Implements
EPiServer.Data.Entity.IReadOnly<>
EPiServer.Data.Entity.IReadOnly
EPiServer.Core.IContent
EPiServer.Core.IContentData
EPiServer.Core.ILocalizable
EPiServer.Core.ILocale
EPiServer.Core.IVersionable
EPiServer.Web.Routing.IRoutable
EPiServer.Security.ISecurable
EPiServer.Core.IChangeTrackable