Search Results for

    Show / Hide Table of Contents

    Class PropRelationshipAttribute

    The base attribute used for marking that a given property holds a relationship to another entity in the system

    Includes attributes about the relationship such as cascade delete options and others

    Inheritance
    object
    Attribute
    PropRelationshipAttribute
    EntityLinkToAnyParentRelationshipAttribute
    EntityRelationshipAttribute
    EntitySelfRelationshipAttribute
    ReplicatedEntityRelationshipAttribute
    Inherited Members
    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.MemberwiseClone()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.API.Attributes
    Assembly: LemonEdge.API.dll
    Syntax
    public abstract class PropRelationshipAttribute : Attribute

    Constructors

    PropRelationshipAttribute()

    Declaration
    protected PropRelationshipAttribute()

    Properties

    DeleteWithRelationship

    Indicates when the parent entity is deleted all child entities through this relationship should be deleted too

    Declaration
    public bool DeleteWithRelationship { get; set; }
    Property Value
    Type Description
    bool

    InheritPermissions

    Indicates the permissions for this entity are inherited from the target entity of this relationship.

    Typically this means this entity itself does not need to inherit from IBaseEntityWithPermissions and instead can just inherit from IBaseEntity

    Declaration
    public bool InheritPermissions { get; set; }
    Property Value
    Type Description
    bool

    IsTypeExtender

    Indicates this relationship points to the ID column of the target type, and "extends" the properties of that type. In other words from a UI perspective this object can be displayed against an instance of the target type

    Declaration
    public bool IsTypeExtender { get; set; }
    Property Value
    Type Description
    bool

    JoinType

    Holds the type of join this relationship holds. Either a zero to one, or one, relationship indicating if the relationship can be null or not.

    Declaration
    public SingleJoinType JoinType { get; set; }
    Property Value
    Type Description
    SingleJoinType

    LinkToItemInSet

    Indicates this points to an item that we should include when exporting/copying this item itself PartOfParentSet = true on a userrole.userid relationship, would indicate we always export the role links when exporting a user LinkToItemInSet = false on userrole.roleid relationship, would indicate we don't want to traverse this export any further when exporting a user. we only want to export the user and role links, not traverse further and export the roles it links to as well.

    Declaration
    public bool LinkToItemInSet { get; set; }
    Property Value
    Type Description
    bool

    PartOfParentSet

    Indicates this item is a part of the set in the parent item When copying/exporting, they are done as a set.

    Declaration
    public bool PartOfParentSet { get; set; }
    Property Value
    Type Description
    bool

    PreventAutoConstraint

    Indicates the system should not create constraints for this relationship on the tables for this source entity

    Declaration
    public bool PreventAutoConstraint { get; set; }
    Property Value
    Type Description
    bool

    SourceLabel

    The label to use when referring to this relationship from the source entity

    Declaration
    public string SourceLabel { get; set; }
    Property Value
    Type Description
    string

    TargetColumn

    Holds the name of the target property on the target entity to use when joining using this relationship

    Declaration
    public string TargetColumn { get; set; }
    Property Value
    Type Description
    string

    TargetLabel

    The label to use when referring to this relationship from the target entity

    Declaration
    public string TargetLabel { get; set; }
    Property Value
    Type Description
    string

    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.