Click or drag to resize

GeneratorUtils.GetRelationshipsToWalk 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.12.0.0 (5.12.0)
Syntax
public static List<KeyValuePair<Pair<RelationshipEdge, bool>, EntityDefinition>> GetRelationshipsToWalk(
	bool includeInheritedSpecified,
	HashSet<EntityRelationshipType> relationshipTypesToFilterOn,
	IGenerator executingGenerator,
	EntityDefinition entity
)

Parameters

includeInheritedSpecified
Type: System.Boolean
if set to true relationships inherited from a supertype are also included.
relationshipTypesToFilterOn
Type: System.Collections.Generic.HashSet<EntityRelationshipType>
The relationship types to filter on.
executingGenerator
Type: SD.LLBLGen.Pro.ApplicationCore.IGenerator
The executing generator.
entity
Type: SD.LLBLGen.Pro.ApplicationCore.EntityModel.EntityDefinition
The entity.

Return Value

Type: List<KeyValuePair<Pair<RelationshipEdge, Boolean>, EntityDefinition>>
list 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