共用方式為


IKeyAddedConvention Interface

Definition

Represents an operation that should be performed when a key is added to the entity type.

public interface IKeyAddedConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention
type IKeyAddedConvention = interface
    interface IConvention
Public Interface IKeyAddedConvention
Implements IConvention
Derived
Implements

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.

Applies to