Class EntityRelationship
Indicates this property holds a relationship that points to another entity in the system
Inherited Members
Namespace: LemonEdge.API.Attributes
Assembly: API.dll
Syntax
[AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
public sealed class EntityRelationship : PropRelationship
Constructors
EntityRelationship(EntityID, String, SingleJoinType, String, String)
Indicates this property holds a relationship to the specified target
Declaration
public EntityRelationship(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 |
System.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 |
System.String | sourceLabel | The label to refer to this relationship by when referenced from the source entity |
System.String | reverseLabel | The label to refer to this relationship by when referenced from the target entity itself |
EntityRelationship(String, String, SingleJoinType, String, String)
Indicates this property holds a relationship to the specified target
Declaration
public EntityRelationship(string guidTarget, string targetColumnName, SingleJoinType type, string sourceLabel, string reverseLabel)
Parameters
Type | Name | Description |
---|---|---|
System.String | guidTarget | The type of entity this is a relationship to |
System.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 |
System.String | sourceLabel | The label to refer to this relationship by when referenced from the source entity |
System.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 |
---|---|
System.Guid |