IEntityRelationAddEntityFieldPairTEntityField Method |
Adds a new pair of entity fields of type TEntityField to the relation, including persistence info.
Primary Key fields and Foreign Key Fields have to be added in pairs. Used by Adapter template set.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax IEntityRelation AddEntityFieldPair<TEntityField>(
TEntityField primaryKeyField,
TEntityField foreignKeyField
)
where TEntityField : IEntityFieldCore
Function AddEntityFieldPair(Of TEntityField As IEntityFieldCore) (
primaryKeyField As TEntityField,
foreignKeyField As TEntityField
) As IEntityRelation
Parameters
- primaryKeyField
- Type: TEntityField
The entity field instance which represents a field in the primary key in the relation - foreignKeyField
- Type: TEntityField
The entity field instance which represents the corresponding field in the foreign key in the relation
Type Parameters
- TEntityField
- The type of the fields.
Return Value
Type:
IEntityRelationthis instance
See Also