Table of Contents

Interface IForeignKeyUniquenessChangedConvention

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

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

public interface IForeignKeyUniquenessChangedConvention : IConvention

Remarks

See Model building conventions for more information and examples.

Methods

ProcessForeignKeyUniquenessChanged(IConventionForeignKeyBuilder, IConventionContext<bool?>)

Called after the uniqueness for a foreign key is changed.

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

Parameters

relationshipBuilder IConventionForeignKeyBuilder

The builder for the foreign key.

context IConventionContext<bool?>

Additional information associated with convention execution.