src/Shared/EntityFramework/ModelConfiguration/Configuration/Properties/Navigation/ConventionNavigationPropertyConfiguration.cs
// <summary>
// Configures the constraint associated with the navigation property.
// </summary>
// <param name="constraintConfigurationAction"> Constraint configuration to be applied. </param>
// <typeparam name="T">
// The type of constraint configuration.
// <see cref="ForeignKeyConstraintConfiguration" /> for
// foreign key constraints and <see cref="IndependentConstraintConfiguration" />
// for independent constraints.
// </typeparam>
Configures the constraint associated with the navigation property.
Configures the constraint associated with the navigation property .
public virtual void HasConstraint<T>(Action<T> constraintConfigurationAction)
            where T : ConstraintConfiguration
        {
            Check.NotNull(constraintConfigurationAction, "constraintConfigurationAction");
            HasConstraintInternal(constraintConfigurationAction);
        }
public virtual void HasConstraint < T > ( Action < T > constraintConfigurationAction ) where T : ConstraintConfiguration { Check . NotNull ( constraintConfigurationAction , " " ) ; HasConstraintInternal ( constraintConfigurationAction ) ; }
Configures the constraint associated with the navigation property.
Configures the constraint associated with the navigation property .
constraintConfigurationAction
Action<T>
Constraint configuration to be applied.
Constraint configuration to be applied .
typeparam
The type of constraint configuration.
for
foreign key constraints and
for independent constraints.
The type of constraint configuration . for foreign key constraints and for independent constraints .