Try our conversational search powered by Generative AI!

Class Relation

Abstract base class for describing a relation from one catalog item to another (the Target)

Inheritance
System.Object
Relation
Implements
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: 10.8.0
Syntax
public abstract class Relation : ILink

Constructors

Relation()

Declaration
protected Relation()

Properties

SortOrder

Gets or sets the sort order.

Declaration
public int SortOrder { get; set; }
Property Value
Type Description
System.Int32

Source

Gets or sets the source of the relation (the item that has the relation). For NodeRelation this is the categorized item (entry or subcategory). For ProductVariation, BundleEntry and PackageEntry this is the product/bundle/package itself.

Declaration
public ContentReference Source { get; set; }
Property Value
Type Description
EPiServer.Core.ContentReference

Target

Gets or sets the target of the relation (the item we're relating to). For NodeRelation this is the category (parent). For ProductVariation this is the variant. For BundleEntry and PackageEntry this is the entry included in the bundle/package.

Declaration
public ContentReference Target { get; set; }
Property Value
Type Description
EPiServer.Core.ContentReference

Implements