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>)
已过时.

在最终确定模型时调用。

适用于