Class RelationType
Represents a RelationType
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[DataContract(IsReference = true)]
public class RelationType : EntityBase, IRelationTypeWithIsDependency, IRelationType, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View SourceRelationType(String, String)
Declaration
public RelationType(string alias, string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
alias | |
System. |
name |
RelationType(String, String, Boolean, Nullable<Guid>, Nullable<Guid>, Boolean)
Declaration
public RelationType(string name, string alias, bool isBidrectional, Guid? parentObjectType, Guid? childObjectType, bool isDependency)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | |
System. |
alias | |
System. |
isBidrectional | |
System. |
parentObjectType | |
System. |
childObjectType | |
System. |
isDependency |
Properties
View SourceAlias
Gets or sets the Alias of the RelationType
Declaration
[DataMember]
public string Alias { get; set; }
Property Value
Type | Description |
---|---|
System. |
ChildObjectType
Gets or sets the Childs object type id
Declaration
[DataMember]
public Guid? ChildObjectType { get; set; }
Property Value
Type | Description |
---|---|
System. |
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. |
IsDependency
Declaration
public bool IsDependency { get; set; }
Property Value
Type | Description |
---|---|
System. |
Name
Gets or sets the Name of the RelationType
Declaration
[DataMember]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System. |
ParentObjectType
Gets or sets the Parents object type id
Declaration
[DataMember]
public Guid? ParentObjectType { get; set; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Corresponds to the NodeObjectType in the umbracoNode table