Click or drag to resize
InheritanceInfoProviderBaseGetHierarchyRelations Method (ListString, String)
This method returns all relations from the lowest entity found in the passed in entityNames to the root and from the lowest entityName downwards to all the reachable leafs from entityName. All relations to the root are INNER JOIN, all relations from the lowest entityName to leafs are LEFT JOIN.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax
public RelationCollection GetHierarchyRelations(
	List<string> entityNames,
	string objectAlias
)

Parameters

entityNames
Type: System.Collections.GenericListString
1 or more names of entities on the same path of which the hierarchy has to be determined. Example of a name: "CustomerEntity"
objectAlias
Type: SystemString
The object alias to specify on all elements in the relations.

Return Value

Type: RelationCollection
collection with relations if all entityNames were found, or null if not.

Implements

IInheritanceInfoProviderGetHierarchyRelations(ListString, String)
Exceptions
ExceptionCondition
ArgumentExceptionwhen not all entities specified in entityNames are on the same hierarchical path
Remarks
This method is a wrapper around GetHierarchyRelations(name), to make finding the right collection more efficient. It finds the lowest entityname in the hierarchy and calls GetHierarchyRelations(name) with that name. It assumes the names are on the same path to the root.
See Also