語言

IEntityTypeAddedConvention 介面

定義

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

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

備註

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

方法

名稱 Description
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

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

適用於