Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class EntryRelation

Abstract base for describing the relations from a catalog entry to another.

Inheritance
System.Object
EntryRelation
Implements
EPiServer.Data.Entity.IReadOnly<Relation>
EPiServer.Data.Entity.IReadOnly<EntryRelation>
EPiServer.Data.Entity.IReadOnly
Namespace: EPiServer.Commerce.Catalog.Linking
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public abstract class EntryRelation : Relation, IReadOnly<Relation>, IReadOnly<EntryRelation>, IReadOnly

Constructors

EntryRelation()

Declaration
protected EntryRelation()

Fields

DefaultGroupName

The default group name.

Declaration
public const string DefaultGroupName = "Default"
Field Value
Type Description
System.String

DefaultQuantity

The default quantity.

Declaration
public static readonly Decimal DefaultQuantity
Field Value
Type Description
System.Decimal

Properties

AllowedChildTypes

Returns CatalogEntry as the valid type for Child.

Declaration
protected override CatalogContentType[] AllowedChildTypes { get; }
Property Value
Type Description
CatalogContentType[]
Overrides

AllowedParentTypes

Returns CatalogEntry as the valid type for Parent.

Declaration
protected override CatalogContentType[] AllowedParentTypes { get; }
Property Value
Type Description
CatalogContentType[]
Overrides

GroupName

Gets or sets a key to group relations by. Can be DefaultGroupName.

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

Quantity

Gets or sets the quantity of Child to include, typically DefaultQuantity.

Declaration
public Nullable<Decimal> Quantity { get; set; }
Property Value
Type Description
System.Nullable<System.Decimal>

Methods

CreateWritableClone()

Declaration
public EntryRelation CreateWritableClone()
Returns
Type Description
EntryRelation

Implements

EPiServer.Data.Entity.IReadOnly<>
EPiServer.Data.Entity.IReadOnly<>
EPiServer.Data.Entity.IReadOnly