Class RelationType
Represents a RelationType
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class RelationType : Entity, IRelationType, IAggregateRoot, IDeletableEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
RelationType(Guid, Guid, String)
Declaration
public RelationType(Guid childObjectType, Guid parentObjectType, string alias)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | childObjectType | |
System.Guid | parentObjectType | |
System.String | alias |
RelationType(Guid, Guid, String, String)
Declaration
public RelationType(Guid childObjectType, Guid parentObjectType, string alias, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | childObjectType | |
System.Guid | parentObjectType | |
System.String | alias | |
System.String | name |
Properties
Alias
Gets or sets the Alias of the RelationType
Declaration
[DataMember]
public string Alias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ChildObjectType
Gets or sets the Childs object type id
Declaration
[DataMember]
public Guid ChildObjectType { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Remarks
Corresponds to the NodeObjectType in the umbracoNode table
IsBidirectional
Gets or sets a boolean indicating whether the RelationType is Bidirectional (true) or Parent to Child (false)
Declaration
[DataMember]
public bool IsBidirectional { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets or sets the Name of the RelationType
Declaration
[DataMember]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParentObjectType
Gets or sets the Parents object type id
Declaration
[DataMember]
public Guid ParentObjectType { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Remarks
Corresponds to the NodeObjectType in the umbracoNode table