GeneratorUtilsGetRelationshipsToWalk Method |
Gets the relationships to walk. This routine returns, ordered on the related entity name, ascending, a list of keyvaluepairs which has
as Key a Pair (Value1: relationship to walk, Value2, flag whether the relationship is used via the startentity) and as Value the
related entity via the Key.value1 relationship.
All relationships with entities not in the list of entities specified in the specified executingGenerator are ignored.
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 List<KeyValuePair<Pair<RelationshipEdge, bool>, EntityDefinition>> GetRelationshipsToWalk(
bool includeInheritedSpecified,
HashSet<EntityRelationshipType> relationshipTypesToFilterOn,
IGenerator executingGenerator,
EntityDefinition entity
)
Public Shared Function GetRelationshipsToWalk (
includeInheritedSpecified As Boolean,
relationshipTypesToFilterOn As HashSet(Of EntityRelationshipType),
executingGenerator As IGenerator,
entity As EntityDefinition
) As List(Of KeyValuePair(Of Pair(Of RelationshipEdge, Boolean), EntityDefinition))
Parameters
- includeInheritedSpecified
- Type: SystemBoolean
if set to relationships inherited from a supertype are also included. - relationshipTypesToFilterOn
- Type: System.Collections.GenericHashSetEntityRelationshipType
The relationship types to filter on. - executingGenerator
- Type: SD.LLBLGen.Pro.ApplicationCoreIGenerator
The executing generator. - entity
- Type: SD.LLBLGen.Pro.ApplicationCore.EntityModelEntityDefinition
The entity.
Return Value
Type:
ListKeyValuePairPairRelationshipEdge,
Boolean,
EntityDefinitionlist or relationships to walk and additional info
Remarks Relationships with self of type 1:1 will turn up twice. Your consuming code therefore has to take this into account.
See Also