PropertyOverridesConvention 类

定义

一种约定,可确保声明属性对于属性重写是最新的。

public class PropertyOverridesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention
type PropertyOverridesConvention = class
    interface IPropertyAddedConvention
    interface IConvention
Public Class PropertyOverridesConvention
Implements IPropertyAddedConvention
继承
PropertyOverridesConvention
实现

注解

有关详细信息和示例,请参阅 模型生成约定实体类型层次结构映射

构造函数

PropertyOverridesConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

创建 PropertyOverridesConvention 的新实例。

属性

Dependencies

此服务的依赖项。

RelationalDependencies

此服务的关系提供程序特定的依赖项。

方法

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

在将属性添加到实体类型后调用。

适用于