Interface IForeignKeyNullNavigationSetConvention
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Conventions
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents an operation that should be performed when a navigation is set to null on a foreign key.
public interface IForeignKeyNullNavigationSetConvention : IConvention
Remarks
See Model building conventions for more information and examples.
Methods
ProcessForeignKeyNullNavigationSet(IConventionForeignKeyBuilder, bool, IConventionContext<IConventionNavigation>)
Called after a navigation is set to null on a foreign key.
void ProcessForeignKeyNullNavigationSet(IConventionForeignKeyBuilder relationshipBuilder, bool pointsToPrincipal, IConventionContext<IConventionNavigation> context)
Parameters
relationshipBuilder
IConventionForeignKeyBuilderThe builder for the foreign key.
pointsToPrincipal
boolA value indicating whether the null navigation would be pointing to the principal entity type.
context
IConventionContext<IConventionNavigation>Additional information associated with convention execution.