EntityRelation Constructor (IEntityField2, IEntityField2, RelationType, Boolean, String) |
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax public EntityRelation(
IEntityField2 primaryKeyField,
IEntityField2 foreignKeyField,
RelationType typeOfRelation,
bool startEntityIsPkSide,
string mappedFieldName
)
Public Sub New (
primaryKeyField As IEntityField2,
foreignKeyField As IEntityField2,
typeOfRelation As RelationType,
startEntityIsPkSide As Boolean,
mappedFieldName As String
)
Parameters
- primaryKeyField
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityField2
The IEntityField2 instance which represents the primary key in the relation - foreignKeyField
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityField2
The IEntityField2 instance which represents the foreign key in the relation - typeOfRelation
- Type: SD.LLBLGen.Pro.ORMSupportClassesRelationType
The type of relation this instance represents - 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. - mappedFieldName
- Type: SystemString
Name of the mapped field in the start entity onto this relation.
Remarks Adapter specific
See Also