TypeMappingConvention 類別

定義

警告

Use IModelRuntimeInitializer.Initialize instead.

建立和指派實體屬性之存放區類型對應的慣例。

public class TypeMappingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class TypeMappingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[System.Obsolete("Use IModelRuntimeInitializer.Initialize instead.")]
public class TypeMappingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type TypeMappingConvention = class
    interface IModelFinalizedConvention
    interface IConvention
type TypeMappingConvention = class
    interface IModelFinalizingConvention
    interface IConvention
[<System.Obsolete("Use IModelRuntimeInitializer.Initialize instead.")>]
type TypeMappingConvention = class
    interface IModelFinalizingConvention
    interface IConvention
Public Class TypeMappingConvention
Implements IModelFinalizedConvention
Public Class TypeMappingConvention
Implements IModelFinalizingConvention
繼承
TypeMappingConvention
屬性
實作

備註

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

建構函式

TypeMappingConvention(ProviderConventionSetBuilderDependencies)
已淘汰.

建立 TypeMappingConvention 的新執行個體。

屬性

Dependencies
已淘汰.

此服務的相依性。

方法

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)
已淘汰.

在模型完成之後呼叫。

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)
已淘汰.

當模型完成時呼叫。

適用於