Class EntityRelationshipAttribute
Indicates this property holds a relationship that points to another entity in the system
Inherited Members
Namespace: LemonEdge.API.Attributes
Assembly: LemonEdge.API.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public sealed class EntityRelationshipAttribute : PropRelationshipAttribute
Constructors
EntityRelationshipAttribute(EntityID, string, SingleJoinType, string, string)
Indicates this property holds a relationship to the specified target
Declaration
public EntityRelationshipAttribute(EntityID target, string targetColumnName, SingleJoinType type, string sourceLabel, string reverseLabel)
Parameters
Type | Name | Description |
---|---|---|
EntityID | target | The type of entity this is a relationship to |
string | targetColumnName | The name of the property on the target entity that this relationship points to. Typically the ID of that entity. |
SingleJoinType | type | The type of relationship. Either Zero To One, or One, indicating whether or not this relationship is nullable |
string | sourceLabel | The label to refer to this relationship by when referenced from the source entity |
string | reverseLabel | The label to refer to this relationship by when referenced from the target entity itself |
EntityRelationshipAttribute(string, string, SingleJoinType, string, string)
Indicates this property holds a relationship to the specified target
Declaration
public EntityRelationshipAttribute(string guidTarget, string targetColumnName, SingleJoinType type, string sourceLabel, string reverseLabel)
Parameters
Type | Name | Description |
---|---|---|
string | guidTarget | The type of entity this is a relationship to |
string | targetColumnName | The name of the property on the target entity that this relationship points to. Typically the ID of that entity. |
SingleJoinType | type | The type of relationship. Either Zero To One, or One, indicating whether or not this relationship is nullable |
string | sourceLabel | The label to refer to this relationship by when referenced from the source entity |
string | reverseLabel | The label to refer to this relationship by when referenced from the target entity itself |
Properties
Target
The type of entity this relationship points to
Declaration
public Guid Target { get; }
Property Value
Type | Description |
---|---|
Guid |