Initializes a new instance of the ForeignKeyFieldAttribute class.
Namespace:
Mindscape.LightSpeedAssembly: Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)
Syntax
C# |
---|
public ForeignKeyFieldAttribute( string[] fieldNames ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ fieldNames As String() _ ) |
Parameters
- fieldNames
- Type: array<
System..::.String
>[]()[]
The names of the fields containing the foreign key value for this association.
Remarks
This overload is used to map a composite foreign key to the columns of the primary key.
You must specify more than one field, and each field name must be be a dotted
path into the entity's composite Id. Finally, the field names must be in the order that they
should be passed to the constructor of the foreign composite key type.