Interface IRelation
Represents a relation between two entities.
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public interface IRelation : IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties
View SourceChildId
Gets or sets the Child Id of the Relation (Destination)
Declaration
[DataMember]
int ChildId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ChildObjectType
Gets or sets the object type of the child entity.
Declaration
[DataMember]
Guid ChildObjectType { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
Comment
Gets or sets a comment for the Relation
Declaration
[DataMember]
string? Comment { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ParentId
Gets or sets the Parent Id of the Relation (Source)
Declaration
[DataMember]
int ParentId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ParentObjectType
Gets or sets the object type of the parent entity.
Declaration
[DataMember]
Guid ParentObjectType { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
RelationType
Gets or sets the RelationType for the Relation
Declaration
[DataMember]
IRelationType RelationType { get; set; }
Property Value
| Type | Description |
|---|---|
| IRelationType |
RelationTypeId
Gets the Id of the RelationType that this Relation is based on.
Declaration
[IgnoreDataMember]
int RelationTypeId { get; }
Property Value
| Type | Description |
|---|---|
| int |