Table of Contents

Interface IForeignKeyRequirednessChangedConvention

Namespace
Microsoft.EntityFrameworkCore.Metadata.Conventions
Assembly
Microsoft.EntityFrameworkCore.dll

Represents an operation that should be performed when the requiredness for a foreign key is changed.

public interface IForeignKeyRequirednessChangedConvention : IConvention

Remarks

See Model building conventions for more information and examples.

Methods

ProcessForeignKeyRequirednessChanged(IConventionForeignKeyBuilder, IConventionContext<bool?>)

Called after the requiredness for a foreign key is changed.

void ProcessForeignKeyRequirednessChanged(IConventionForeignKeyBuilder relationshipBuilder, IConventionContext<bool?> context)

Parameters

relationshipBuilder IConventionForeignKeyBuilder

The builder for the foreign key.

context IConventionContext<bool?>

Additional information associated with convention execution.