GeneratorUtilsGetRelationshipsWithRelatedEntity Method |
Gets the relationship data with the related entity based on the input specified.
Namespace:
SD.LLBLGen.Pro.GeneratorCore
Assembly:
SD.LLBLGen.Pro.GeneratorCore (in SD.LLBLGen.Pro.GeneratorCore.dll) Version: 5.10.0.0 (5.10.0)
Syntax public static Dictionary<Pair<RelationshipEdge, bool>, EntityDefinition> GetRelationshipsWithRelatedEntity(
IEnumerable<Pair<RelationshipEdge, bool>> relationshipsToExamine,
IGenerator executingGenerator
)
Public Shared Function GetRelationshipsWithRelatedEntity (
relationshipsToExamine As IEnumerable(Of Pair(Of RelationshipEdge, Boolean)),
executingGenerator As IGenerator
) As Dictionary(Of Pair(Of RelationshipEdge, Boolean), EntityDefinition)
Parameters
- relationshipsToExamine
- Type: System.Collections.GenericIEnumerablePairRelationshipEdge, Boolean
The relationships to examine. Pair.Value1 is the relationship, Pair.Value2 is
a flag signaling whether the 'manytoone' is valid for the start entity or for the end entity - executingGenerator
- Type: SD.LLBLGen.Pro.ApplicationCoreIGenerator
The executing generator.
Return Value
Type:
DictionaryPairRelationshipEdge,
Boolean,
EntityDefinition
returns per relationship the related entity.
Returned keys: pair.Value1 is relationship, pair.Value2 is a flag signaling whether the relationship is valid for the start entity (true)
or for the end entity. This means: if relationship is A m:1 B, and flag is false, the relationship has to be seen as B 1:n A, and A is the
related entity. This flag is used in situations where the entity has a relationship with itself, and the flag can be used which navigator to
choose.
See Also