IInheritanceInfoProviderGetHierarchyRelations 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.1.0.0 (5.1.0)
Syntax RelationCollection GetHierarchyRelations(
List<string> entityNames,
string objectAlias
)
Function GetHierarchyRelations (
entityNames As List(Of String),
objectAlias As String
) As RelationCollection
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.
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.
See Also