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.3.0)
public RelationCollection GetHierarchyRelations(
	List<string> entityNames,
	string objectAlias


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"
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.


IInheritanceInfoProviderGetHierarchyRelations(ListString, String)
ArgumentExceptionwhen not all entities specified in entityNames are on the same hierarchical path
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