Search Results for

    Show / Hide Table of Contents

    Class EntityRelationshipAttribute

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

    Inheritance
    object
    Attribute
    PropRelationshipAttribute
    EntityRelationshipAttribute
    Inherited Members
    PropRelationshipAttribute.TargetColumn
    PropRelationshipAttribute.JoinType
    PropRelationshipAttribute.SourceLabel
    PropRelationshipAttribute.TargetLabel
    PropRelationshipAttribute.PreventAutoConstraint
    PropRelationshipAttribute.InheritPermissions
    PropRelationshipAttribute.DeleteWithRelationship
    PropRelationshipAttribute.IsTypeExtender
    PropRelationshipAttribute.PartOfParentSet
    PropRelationshipAttribute.LinkToItemInSet
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.Equals(object)
    Attribute.GetHashCode()
    Attribute.Match(object)
    Attribute.IsDefaultAttribute()
    Attribute.TypeId
    object.GetType()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.API.Attributes
    Assembly: LemonEdge.API.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property)]
    public sealed class EntityRelationshipAttribute : PropRelationshipAttribute

    Constructors

    EntityRelationshipAttribute(EntityID, string, SingleJoinType, string, string)

    Indicates this property holds a relationship to the specified target

    Declaration
    public EntityRelationshipAttribute(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

    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

    string sourceLabel

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

    string reverseLabel

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

    EntityRelationshipAttribute(string, string, SingleJoinType, string, string)

    Indicates this property holds a relationship to the specified target

    Declaration
    public EntityRelationshipAttribute(string guidTarget, string targetColumnName, SingleJoinType type, string sourceLabel, string reverseLabel)
    Parameters
    Type Name Description
    string guidTarget

    The type of entity this is a relationship to

    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

    string sourceLabel

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

    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
    Guid

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.