ForeignKeyAssociationMappingConfiguration.MapKey Method (String[])
Configures the name of the column(s) for the foreign key.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- keyColumnNames
-
Type:
System.String[]
The foreign key column names. When using multiple foreign key properties, the properties must be specified in the same order that the the primary key properties were configured for the target entity type.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ForeignKeyAssociationMappingConfigurationThe same ForeignKeyAssociationMappingConfiguration instance so that multiple calls can be chained.