ForeignKeyNavigationPropertyConfiguration.Map Method (Action<ForeignKeyAssociationMappingConfiguration>)

 

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.

Namespace:   System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

public CascadableNavigationPropertyConfiguration Map(
	Action<ForeignKeyAssociationMappingConfiguration> configurationAction
)

Parameters

configurationAction
Type: System.Action<ForeignKeyAssociationMappingConfiguration>

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

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.CascadableNavigationPropertyConfiguration

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