语言

ElementMappingConvention 类

定义

确保属性映射具有类型映射器发现的任何 ElementMapping 的约定。

[System.Runtime.CompilerServices.Nullable(0)]
public class ElementMappingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type ElementMappingConvention = class
    interface IModelFinalizingConvention
    interface IConvention
Public Class ElementMappingConvention
Implements IModelFinalizingConvention
继承
ElementMappingConvention
特性
实现

注解

有关详细信息和示例,请参阅 模型生成约定 。

构造函数

名称 说明
ElementMappingConvention(ProviderConventionSetBuilderDependencies)

创建 ElementMappingConvention的新实例。

属性

名称 说明
Dependencies

此服务的依赖项。

方法

名称 说明
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

在完成模型时调用。

适用于