CheckConstraintConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
一种约定,可确保派生类型的检查约束与基类型的检查约束兼容。 同时确保声明类型是最新的。
[System.Runtime.CompilerServices.Nullable(0)]
public class CheckConstraintConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
public class CheckConstraintConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type CheckConstraintConvention = class
interface IEntityTypeBaseTypeChangedConvention
interface IConvention
interface IEntityTypeAddedConvention
type CheckConstraintConvention = class
interface IEntityTypeBaseTypeChangedConvention
interface IConvention
interface IEntityTypeAddedConvention
Public Class CheckConstraintConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention
- 继承
-
CheckConstraintConvention
- 特性
- 实现
注解
有关详细信息和示例,请参阅 模型生成约定 。
构造函数
| 名称 | 说明 |
|---|---|
| CheckConstraintConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
创建 CheckConstraintConvention的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| Dependencies |
此服务的依赖项。 |
| RelationalDependencies |
此服务的关系提供程序特定的依赖项。 |