Click or drag to resize

ModelInfoProviderBaseCreateHierarchyRelationTField 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.9.0.0 (5.9.0)
Syntax
public IEntityRelation CreateHierarchyRelation<TField>(
	bool startEntityIsPkSide,
	TField[] fields
)
where TField : IEntityFieldCore

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: IEntityRelation

Implements

IModelInfoProviderCreateHierarchyRelationTField(Boolean, TField)
See Also