語言

IKeyAddedConvention 介面

定義

代表當將鍵加入實體類型時應執行的操作。

public interface IKeyAddedConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IConvention
type IKeyAddedConvention = interface
    interface IConvention
Public Interface IKeyAddedConvention
Implements IConvention
衍生
實作

備註

更多資訊與範例請參閱 模型建構慣例 。

方法

名稱 Description
ProcessKeyAdded(IConventionKeyBuilder, IConventionContext<IConventionKeyBuilder>)

在實體類型中加入鍵數後呼叫。

適用於