Click or drag to resize

IInheritanceInfoProviderGetHierarchyRelations 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.6.0.0 (5.6.19.0117)
Syntax
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.
Remarks
This routine uses no subroutines to avoid thread unsafety.
See Also