Class EntitySelfRelationshipAttribute
Indicates this is a relationship that references the same entity
Inherited Members
Namespace: LemonEdge.API.Attributes
Assembly: LemonEdge.API.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public sealed class EntitySelfRelationshipAttribute : PropRelationshipAttribute
Constructors
EntitySelfRelationshipAttribute(string, SingleJoinType, string, string)
Creates a new relationship definition where the source and target entity type are the same
Declaration
public EntitySelfRelationshipAttribute(string targetColumnName, SingleJoinType type, string sourceLabel, string reverseLabel)
Parameters
Type | Name | Description |
---|---|---|
string | targetColumnName | The name of the property on this entity that this relationship links to - typically the ID property |
SingleJoinType | type | The type of relationship, either a Zero To One, or One join |
string | sourceLabel | The label used to refer to this relationship from the source entity |
string | reverseLabel | The label used to refer to this relationship from the target entity |