语言

PropertyOverridesConvention 类

定义

确保声明属性是属性重写的当前约定。

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

注解

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

构造函数

名称 说明
PropertyOverridesConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

创建 PropertyOverridesConvention的新实例。

属性

名称 说明
Dependencies

此服务的依赖项。

RelationalDependencies

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

方法

名称 说明
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

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

适用于