View Source
Class RelationType
Represents a RelationType
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
[DataContract(IsReference = true)]
public class RelationType : EntityBase, IRelationType, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View Source
RelationType(Guid, Guid, String)
Declaration
[Obsolete("This constructor is no longer used and will be removed in future versions, use one of the other constructors instead")]
public RelationType(Guid childObjectType, Guid parentObjectType, string alias)
Parameters
Type |
Name |
Description |
System.Guid |
childObjectType |
|
System.Guid |
parentObjectType |
|
System.String |
alias |
|
View Source
RelationType(Guid, Guid, String, String)
Declaration
[Obsolete("This constructor is no longer used and will be removed in future versions, use one of the other constructors instead")]
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 |
|
View Source
RelationType(String, String)
Declaration
[Obsolete("This constructor is no longer used and will be removed in future versions, use one of the other constructors instead")]
public RelationType(string alias, string name)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
System.String |
name |
|
View Source
RelationType(String, String, Boolean, Nullable<Guid>, Nullable<Guid>)
Declaration
public RelationType(string name, string alias, bool isBidrectional, Guid? parentObjectType, Guid? childObjectType)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
alias |
|
System.Boolean |
isBidrectional |
|
System.Nullable<System.Guid> |
parentObjectType |
|
System.Nullable<System.Guid> |
childObjectType |
|
Properties
View Source
Alias
Gets or sets the Alias of the RelationType
Declaration
[DataMember]
public string Alias { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
ChildObjectType
Gets or sets the Childs object type id
Declaration
[DataMember]
public Guid? ChildObjectType { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
View Source
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 |
|
View Source
Name
Gets or sets the Name of the RelationType
Declaration
[DataMember]
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
ParentObjectType
Gets or sets the Parents object type id
Declaration
[DataMember]
public Guid? ParentObjectType { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|