PropertyOverridesConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确保声明属性是属性重写的当前约定。
[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>) |
在将属性添加到实体类型后调用。 |