Search Results for

    Show / Hide Table of Contents

    Class EntityLinkToAnyParentRelationshipAttribute

    Indicates this property holds a relationship link to an id of any entity in the system. There should also be another property holding the type of entity the id links to marked with IsEntityTypeLink

    A relationship to the id of a specific entity is marked with EntityRelationshipAttribute

    Inheritance
    object
    Attribute
    PropRelationshipAttribute
    EntityLinkToAnyParentRelationshipAttribute
    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 EntityLinkToAnyParentRelationshipAttribute : PropRelationshipAttribute

    Constructors

    EntityLinkToAnyParentRelationshipAttribute(string, SingleJoinType, string, bool, params Type[])

    Creates a new relationship link specifying this entity can be related to any other entity in the system

    Declaration
    public EntityLinkToAnyParentRelationshipAttribute(string parentTypePropertyName, SingleJoinType type, string reverseLabel, bool partOfParentSet, params Type[] excludeType)
    Parameters
    Type Name Description
    string parentTypePropertyName

    The name of the property on this entity that holds an id to any other item in the system

    SingleJoinType type

    The type of relationship: A zero to one, or one to one relationship

    string reverseLabel

    The label to use when specifying the name of this relationship from the linked entities perspective

    bool partOfParentSet

    Indicates if this relationship forms a part of the exportable set of items from the parent entity

    Type[] excludeType

    A list of entity types that can not be linked to from this relationship. By default all entities can be linked if this is null.

    Properties

    ExcludedParentTypes

    The list of entity types that can not be a parent of this relationship

    Can be used to prevent circular relationship references, for performance, or other reasons

    Declaration
    public IEnumerable<Type> ExcludedParentTypes { get; }
    Property Value
    Type Description
    IEnumerable<Type>

    OnlyWithLabels

    Indicates this links to entity descriptors only where they have a label - i.e. are a root entity descriptor of some type, child items wouldn't be included

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

    ParentTypePropertyName

    The name of the property on this entity that holds an id to any other item in the system

    Declaration
    public string ParentTypePropertyName { get; }
    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.