Interface IKeyRemovedConvention
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Conventions
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents an operation that should be performed when a key is removed.
public interface IKeyRemovedConvention : IConvention
Remarks
See Model building conventions for more information and examples.
Methods
ProcessKeyRemoved(IConventionEntityTypeBuilder, IConventionKey, IConventionContext<IConventionKey>)
Called after a key is removed.
void ProcessKeyRemoved(IConventionEntityTypeBuilder entityTypeBuilder, IConventionKey key, IConventionContext<IConventionKey> context)
Parameters
entityTypeBuilder
IConventionEntityTypeBuilderThe builder for the entity type.
key
IConventionKeyThe removed key.
context
IConventionContext<IConventionKey>Additional information associated with convention execution.