Class EntityLinkToAnyParentRelationshipModifierAttribute
Modifies a EntityLinkToAnyParentRelationshipAttribute relationship with properties specific to the relationship to this entity
Inherited Members
Namespace: LemonEdge.API.Attributes
Assembly: LemonEdge.API.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface, Inherited = false, AllowMultiple = true)]
public sealed class EntityLinkToAnyParentRelationshipModifierAttribute : Attribute
Constructors
EntityLinkToAnyParentRelationshipModifierAttribute(EntityID, string, string)
Updates a EntityLinkToAnyParentRelationshipAttribute with the specified overrides for the relationship to this entity as a parent
Declaration
public EntityLinkToAnyParentRelationshipModifierAttribute(EntityID source, string sourePropertyName, string targetPropertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityID | source | The global unique id of the source entity that has a EntityLinkToAnyParentRelationshipAttribute relationship |
| string | sourePropertyName | The source property on the entity that holds a EntityLinkToAnyParentRelationshipAttribute |
| string | targetPropertyName | The property on this entity that the relationship points to (normally always ID) |
EntityLinkToAnyParentRelationshipModifierAttribute(string, string, string)
Updates a EntityLinkToAnyParentRelationshipAttribute with the specified overrides for the relationship to this entity as a parent
Declaration
public EntityLinkToAnyParentRelationshipModifierAttribute(string sourceID, string sourePropertyName, string targetPropertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sourceID | The global unique id of the source entity that has a EntityLinkToAnyParentRelationshipAttribute relationship |
| string | sourePropertyName | The source property on the entity that holds a EntityLinkToAnyParentRelationshipAttribute |
| string | targetPropertyName | The property on this entity that the relationship points to (normally always ID) |
Properties
ExcludeFromRelationship
Indicates this entity can not be a parent item for the EntityLinkToAnyParentRelationshipAttribute relationship to this entity.
Equivalent to this type being part of the EntityLinkToAnyParentRelationship ExcludedParentTypes property
Used if you have not defined the entity and can not change the relationship, but need to make sure that this entity can not be a parent to that relationship
Declaration
public bool ExcludeFromRelationship { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ExcludeFromRelationshipIsSet
Indicates if ExcludeFromRelationship property has been overridden
Declaration
public bool ExcludeFromRelationshipIsSet { get; }
Property Value
| Type | Description |
|---|---|
| bool |
PartOfThisSet
Overrides PartOfParentSet property on this specific instance of the EntityLinkToAnyParentRelationshipAttribute relationship to this entity
Declaration
public bool PartOfThisSet { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
PartOfThisSetIsSet
Indicates if PartOfThisSet property has been overridden
Declaration
public bool PartOfThisSetIsSet { get; }
Property Value
| Type | Description |
|---|---|
| bool |
SourceEntityID
The global unique id of the source entity that has a EntityLinkToAnyParentRelationshipAttribute relationship
Declaration
public Guid SourceEntityID { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
SourcePropertyName
The source property on the entity that holds a EntityLinkToAnyParentRelationshipAttribute
Declaration
public string SourcePropertyName { get; }
Property Value
| Type | Description |
|---|---|
| string |
TargetPropertyName
The property on this entity that the relationship points to (normally always ID)
Declaration
public string TargetPropertyName { get; }
Property Value
| Type | Description |
|---|---|
| string |