Search Results for

    Show / Hide Table of Contents

    Class EntityLinkToAnyParentRelationship

    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 EntityRelationship

    Inheritance
    System.Object
    System.Attribute
    PropRelationship
    EntityLinkToAnyParentRelationship
    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 EntityLinkToAnyParentRelationship : PropRelationship

    Constructors

    EntityLinkToAnyParentRelationship(String, SingleJoinType, String, Boolean, Type[])

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

    Declaration
    public EntityLinkToAnyParentRelationship(string parentTypePropertyName, SingleJoinType type, string reverseLabel, bool partOfParentSet, params Type[] excludeType)
    Parameters
    Type Name Description
    System.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

    System.String reverseLabel

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

    System.Boolean partOfParentSet

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

    System.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
    System.Collections.Generic.IEnumerable<System.Type>

    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
    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 © LemonTree Software Ltd. All rights reserved.