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
Inherited Members
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 |