IModelInfoProviderCreateHierarchyRelationTField Method |
Creates a new hierarchy relation using the fields specified. A hierarchy relation is a 1:1 relation used for inheritance information.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.7.0.0 (5.7.0)
Syntax IEntityRelation CreateHierarchyRelation<TField>(
bool startEntityIsPkSide,
TField[] fields
)
where TField : IEntityFieldCore
Function CreateHierarchyRelation(Of TField As IEntityFieldCore) (
startEntityIsPkSide As Boolean,
fields As TField()
) As IEntityRelation
Parameters
- startEntityIsPkSide
- Type: SystemBoolean
Set to true if the start entity of the relation is the PK side of the relation. This is set in the generated code.
This property is true in 1:n relations and in 1:1 relations where the start entity is the PK side and the end entity is thus the
FK side. Required for determining which alias belongs to which entity. - fields
- Type: TField
Type Parameters
- TField
Return Value
Type:
IEntityRelationSee Also