Interface IKeyAddedConvention
- Namespace
- Microsoft.EntityFrameworkCore.Metadata.Conventions
- Assembly
- Microsoft.EntityFrameworkCore.dll
Represents an operation that should be performed when a key is added to the entity type.
public interface IKeyAddedConvention : IConvention
Remarks
See Model building conventions for more information and examples.
Methods
ProcessKeyAdded(IConventionKeyBuilder, IConventionContext<IConventionKeyBuilder>)
Called after a key is added to the entity type.
void ProcessKeyAdded(IConventionKeyBuilder keyBuilder, IConventionContext<IConventionKeyBuilder> context)
Parameters
keyBuilder
IConventionKeyBuilderThe builder for the key.
context
IConventionContext<IConventionKeyBuilder>Additional information associated with convention execution.