Table of Contents

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 IConventionForeignKeyBuilder

The builder for the foreign key.

pointsToPrincipal bool

A value indicating whether the null navigation would be pointing to the principal entity type.

context IConventionContext<IConventionNavigation>

Additional information associated with convention execution.