Table of Contents

Interface IForeignKeyRemovedConvention

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

Represents an operation that should be performed when a foreign key is removed.

public interface IForeignKeyRemovedConvention : IConvention

Remarks

See Model building conventions for more information and examples.

Methods

ProcessForeignKeyRemoved(IConventionEntityTypeBuilder, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

Called after a foreign key is removed.

void ProcessForeignKeyRemoved(IConventionEntityTypeBuilder entityTypeBuilder, IConventionForeignKey foreignKey, IConventionContext<IConventionForeignKey> context)

Parameters

entityTypeBuilder IConventionEntityTypeBuilder

The builder for the entity type.

foreignKey IConventionForeignKey

The removed foreign key.

context IConventionContext<IConventionForeignKey>

Additional information associated with convention execution.