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 NodeRelation

Links an entry or subcategory (defined by Child) to a category (defined by Parent).

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

Constructors

NodeRelation()

Declaration
public NodeRelation()

Properties

AllowedChildTypes

Returns CatalogEntry and CatalogNode as the valid types for Child.

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

AllowedParentTypes

Returns CatalogNode as the valid type for Parent.

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

TargetCatalog

The catalog the relation belongs to, typically the same as Parent belongs to.

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

The EPiServer.Core.ContentReference of the catalog (CatalogContent).

Methods

CreateWritableClone()

Creates a writable copy of the current object.

Declaration
public NodeRelation CreateWritableClone()
Returns
Type Description
NodeRelation

A writable copy of the current object.

Remarks

The cloning is a deep-copy.

CreateWritableCloneImplementation()

Implements the deep clone. Override to add any operations not handled by the base implementation (which includes a shallow copy by MemberwiseClone).

Declaration
protected override Relation CreateWritableCloneImplementation()
Returns
Type Description
Relation

A cloned instance in read-write mode.

Overrides

Implements

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