ElementMappingConvention 類別

定義

確保屬性對應具有類型對應器所探索到的任何 ElementMapping 慣例。

public class ElementMappingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type ElementMappingConvention = class
    interface IModelFinalizingConvention
    interface IConvention
Public Class ElementMappingConvention
Implements IModelFinalizingConvention
繼承
ElementMappingConvention
實作

備註

如需詳細資訊和範例,請參閱 模型建置慣例

建構函式

ElementMappingConvention(ProviderConventionSetBuilderDependencies)

建立 ElementMappingConvention 的新執行個體。

屬性

Dependencies

此服務的相依性。

方法

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

在完成模型時呼叫。

適用於