src/Shared/EntityFramework/ModelConfiguration/Configuration/Properties/Navigation/WithX/ForeignKeyNavigationPropertyConfiguration.cs
/// <summary>
/// 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.
/// </summary>
/// <param name="configurationAction"> Action that configures the foreign key column(s) and table. </param>
/// <returns> A configuration object that can be used to further configure the relationship. </returns>
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.
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 CascadableNavigationPropertyConfiguration Map(
            Action<ForeignKeyAssociationMappingConfiguration> configurationAction)
        {
            Check.NotNull(configurationAction, "configurationAction");
            NavigationPropertyConfiguration.Constraint = IndependentConstraintConfiguration.Instance;
            var independentAssociationMappingConfiguration = new ForeignKeyAssociationMappingConfiguration();
            configurationAction(independentAssociationMappingConfiguration);
            NavigationPropertyConfiguration.AssociationMappingConfiguration = independentAssociationMappingConfiguration;
            return this;
        }
public CascadableNavigationPropertyConfiguration Map ( Action < ForeignKeyAssociationMappingConfiguration > configurationAction ) { Check . NotNull ( configurationAction , " " ) ; NavigationPropertyConfiguration . Constraint = IndependentConstraintConfiguration . Instance ; var independentAssociationMappingConfiguration = new ForeignKeyAssociationMappingConfiguration ( ) ; configurationAction ( independentAssociationMappingConfiguration ) ; NavigationPropertyConfiguration . AssociationMappingConfiguration = independentAssociationMappingConfiguration ; return this ; }
Configures the relationship to use foreign key property(s) that are not exposed in the object model.
Configures the relationship to use foreign key property ( s ) that are not exposed in the object model .
A configuration object that can be used to further configure the relationship.
A configuration object that can be used to further configure the relationship .
configurationAction
Action<ForeignKeyAssociationMappingConfiguration>
Action that configures the foreign key column(s) and table.
Action that configures the foreign key column ( s ) and table .