Search Results for

    Show / Hide Table of Contents

    Class PropRelationship

    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
    System.Object
    System.Attribute
    PropRelationship
    EntityLinkToAnyParentRelationship
    EntityRelationship
    EntitySelfRelationship
    ReplicatedEntityRelationship
    Inherited Members
    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
    public abstract class PropRelationship : Attribute

    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
    System.Boolean

    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
    System.Boolean

    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
    System.Boolean

    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
    System.Boolean

    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
    System.Boolean

    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
    System.Boolean

    SourceLabel

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

    Declaration
    public string SourceLabel { get; set; }
    Property Value
    Type Description
    System.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
    System.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
    System.String

    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 © LemonEdge Technology. All rights reserved.