Search Results for

    Show / Hide Table of Contents

    Class EntityRelationship

    Indicates this property holds a relationship that points to another entity in the system

    Inheritance
    System.Object
    System.Attribute
    PropRelationship
    EntityRelationship
    Inherited Members
    PropRelationship.TargetColumn
    PropRelationship.JoinType
    PropRelationship.SourceLabel
    PropRelationship.TargetLabel
    PropRelationship.PreventAutoConstraint
    PropRelationship.InheritPermissions
    PropRelationship.DeleteWithRelationship
    PropRelationship.IsTypeExtender
    PropRelationship.PartOfParentSet
    PropRelationship.LinkToItemInSet
    System.Attribute.Equals(System.Object)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetHashCode()
    System.Attribute.IsDefaultAttribute()
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.Match(System.Object)
    System.Attribute.TypeId
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.API.Attributes
    Assembly: API.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
    public sealed class EntityRelationship : PropRelationship

    Constructors

    EntityRelationship(EntityID, String, SingleJoinType, String, String)

    Indicates this property holds a relationship to the specified target

    Declaration
    public EntityRelationship(EntityID target, string targetColumnName, SingleJoinType type, string sourceLabel, string reverseLabel)
    Parameters
    Type Name Description
    EntityID target

    The type of entity this is a relationship to

    System.String targetColumnName

    The name of the property on the target entity that this relationship points to. Typically the ID of that entity.

    SingleJoinType type

    The type of relationship. Either Zero To One, or One, indicating whether or not this relationship is nullable

    System.String sourceLabel

    The label to refer to this relationship by when referenced from the source entity

    System.String reverseLabel

    The label to refer to this relationship by when referenced from the target entity itself

    EntityRelationship(String, String, SingleJoinType, String, String)

    Indicates this property holds a relationship to the specified target

    Declaration
    public EntityRelationship(string guidTarget, string targetColumnName, SingleJoinType type, string sourceLabel, string reverseLabel)
    Parameters
    Type Name Description
    System.String guidTarget

    The type of entity this is a relationship to

    System.String targetColumnName

    The name of the property on the target entity that this relationship points to. Typically the ID of that entity.

    SingleJoinType type

    The type of relationship. Either Zero To One, or One, indicating whether or not this relationship is nullable

    System.String sourceLabel

    The label to refer to this relationship by when referenced from the source entity

    System.String reverseLabel

    The label to refer to this relationship by when referenced from the target entity itself

    Properties

    Target

    The type of entity this relationship points to

    Declaration
    public Guid Target { get; }
    Property Value
    Type Description
    System.Guid

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.