EntityRelationAddEntityFieldPairTEntityField Method |
Adds a new pair of entity field instances to the relation. Primary Key fields and Foreign Key Fields have to be added
in pairs.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax public IEntityRelation AddEntityFieldPair<TEntityField>(
TEntityField primaryKeyField,
TEntityField foreignKeyField
)
where TEntityField : IEntityFieldCore
Public 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
Return Value
Type:
IEntityRelationthis instance
Implements
IEntityRelationAddEntityFieldPairTEntityField(TEntityField, TEntityField)See Also