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
)
Public 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:
RelationCollectioncollection with relations if all entityNames were found, or null if not.
Implements
IInheritanceInfoProviderGetHierarchyRelations(ListString, String)Exceptions Exception | Condition |
---|
ArgumentException | when 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