Represents a Relation between two items.
Represents a Relation between two items.
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
All samples in this document will require references to the following dll:
Umbraco.Core.dll
All samples in this document will require the following using statement:
Constructor for creating a new Relation object. The necessary parameters are the Id of the parent item as an int
, the Id of the child as an int
and the relationType as IRelationType
.
A second constructor exists but it should not be used because it is used to reconstruct a relation from the data source.
Gets or sets the Child Id of the Relation (Destination)
Gets or sets a comment for the Relation
Gets or sets the Parent Id of the Relation (Source)
Gets or sets the RelationType for the Relation
Gets the Id of the RelationType that this Relation is based on.