IEntityTypePrimaryKeyChangedConvention 接口

定义

表示在实体类型的主键发生更改时应执行的操作。

public interface IEntityTypePrimaryKeyChangedConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention
type IEntityTypePrimaryKeyChangedConvention = interface
    interface IConvention
Public Interface IEntityTypePrimaryKeyChangedConvention
Implements IConvention
派生
实现

注解

有关详细信息和示例,请参阅 模型生成约定

方法

ProcessEntityTypePrimaryKeyChanged(IConventionEntityTypeBuilder, IConventionKey, IConventionKey, IConventionContext<IConventionKey>)

在实体类型的主键更改后调用。

适用于