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>)

在實體類型的主鍵變更之後呼叫。

適用於