Search Results for

    Show / Hide Table of Contents
    View Source

    Class RelationType

    Represents a RelationType

    Inheritance
    System.Object
    BeingDirtyBase
    EntityBase
    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 Source

    RelationType(String, String)

    Declaration
    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>, Boolean)

    Declaration
    public RelationType(string name, string alias, bool isBidrectional, Guid? parentObjectType, Guid? childObjectType, bool isDependency)
    Parameters
    Type Name Description
    System.String name
    System.String alias
    System.Boolean isBidrectional
    System.Nullable<Guid> parentObjectType
    System.Nullable<Guid> childObjectType
    System.Boolean isDependency

    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<Guid>
    Remarks

    Corresponds to the NodeObjectType in the umbracoNode table

    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

    IsDependency

    Declaration
    public bool IsDependency { 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<Guid>
    Remarks

    Corresponds to the NodeObjectType in the umbracoNode table

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • RelationType(String, String)
      • RelationType(String, String, Boolean, Nullable<Guid>, Nullable<Guid>, Boolean)
    • Properties
      • Alias
      • ChildObjectType
      • IsBidirectional
      • IsDependency
      • Name
      • ParentObjectType
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX