Click or drag to resize
InheritanceInfoProviderBaseGetHierarchyRelations Method (String, String, Boolean)
This method returns all relations from the entityName to the root and from the entityName downwards to all the reachable leafs from entityName, if includePathsToReachableLeafs is set to true. All relations to the root are INNER JOIN, all relations from entityName to leafs are LEFT JOIN

Namespace: SD.LLBLGen.Pro.ORMSupportClasses
Assembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax
public RelationCollection GetHierarchyRelations(
	string entityName,
	string objectAlias,
	bool includePathsToReachableLeafs
)

Parameters

entityName
Type: SystemString
name of the current entity on the path of which the hierarchy has to be determined. Example: "CustomerEntity"
objectAlias
Type: SystemString
The object alias to set on all elements in the relations.
includePathsToReachableLeafs
Type: SystemBoolean
If set to true, it will include the relations for all paths to leafs below the entity passed in

Return Value

Type: RelationCollection
collection with relations if entityName was found, or null if not or if the entity is in a TargetPerEntityHierarchy.

Implements

IInheritanceInfoProviderGetHierarchyRelations(String, String, Boolean)
Remarks
This routine uses no subroutines to avoid thread unsafety.
See Also