Class Relation
Represents a Relation between two items
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class Relation : Entity, IRelation, IAggregateRoot, IDeletableEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
Relation(Int32, Int32, IRelationType)
Declaration
public Relation(int parentId, int childId, IRelationType relationType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | parentId | |
System.Int32 | childId | |
IRelationType | relationType |
Properties
ChildId
Gets or sets the Child Id of the Relation (Destination)
Declaration
[DataMember]
public int ChildId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Comment
Gets or sets a comment for the Relation
Declaration
[DataMember]
public string Comment { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParentId
Gets or sets the Parent Id of the Relation (Source)
Declaration
[DataMember]
public int ParentId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RelationType
Gets or sets the RelationType for the Relation
Declaration
[DataMember]
public IRelationType RelationType { get; set; }
Property Value
Type | Description |
---|---|
IRelationType |
RelationTypeId
Gets the Id of the RelationType that this Relation is based on.
Declaration
[IgnoreDataMember]
public int RelationTypeId { get; }
Property Value
Type | Description |
---|---|
System.Int32 |