SaaS CMS has officially launched! Learn more now.

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
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Catalog.Linking
Assembly: EPiServer.Business.Commerce.dll
Version: 11.8.3
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 const decimal DefaultQuantity = 1.0M
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 decimal? Quantity { get; set; }
Property Value
Type Description
System.Nullable<System.Decimal>

SourceAccessor

Accesses Parent.

Declaration
protected override ContentReference SourceAccessor { get; set; }
Property Value
Type Description
EPiServer.Core.ContentReference
Overrides

TargetAccessor

Accesses Child.

Declaration
protected override ContentReference TargetAccessor { get; set; }
Property Value
Type Description
EPiServer.Core.ContentReference
Overrides

Methods

CreateWritableClone()

Declaration
public EntryRelation CreateWritableClone()
Returns
Type Description
EntryRelation

Implements

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