ForeignKeyNavigationPropertyConfiguration.Map Method

Definition

Configures the relationship to use foreign key property(s) that are not exposed in the object model. The column(s) and table can be customized by specifying a configuration action. If an empty configuration action is specified then column name(s) will be generated by convention. If foreign key properties are exposed in the object model then use the HasForeignKey method. Not all relationships support exposing foreign key properties in the object model.

public System.Data.Entity.ModelConfiguration.Configuration.CascadableNavigationPropertyConfiguration Map (Action<System.Data.Entity.ModelConfiguration.Configuration.ForeignKeyAssociationMappingConfiguration> configurationAction);
member this.Map : Action<System.Data.Entity.ModelConfiguration.Configuration.ForeignKeyAssociationMappingConfiguration> -> System.Data.Entity.ModelConfiguration.Configuration.CascadableNavigationPropertyConfiguration
Public Function Map (configurationAction As Action(Of ForeignKeyAssociationMappingConfiguration)) As CascadableNavigationPropertyConfiguration

Parameters

configurationAction
Action<ForeignKeyAssociationMappingConfiguration>

Action that configures the foreign key column(s) and table.

Returns

A configuration object that can be used to further configure the relationship.

Applies to