ForeignKeyNavigationPropertyConfiguration.Map Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework