ValidatingConvention 类

定义

注意

The validation is no longer performed by a convention

检查模型是否有效的约定。

public class ValidatingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
[System.Obsolete("The validation is no longer performed by a convention")]
public class ValidatingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
type ValidatingConvention = class
    interface IModelFinalizedConvention
    interface IConvention
[<System.Obsolete("The validation is no longer performed by a convention")>]
type ValidatingConvention = class
    interface IModelFinalizedConvention
    interface IConvention
Public Class ValidatingConvention
Implements IModelFinalizedConvention
继承
ValidatingConvention
属性
实现

注解

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

构造函数

ValidatingConvention(ProviderConventionSetBuilderDependencies)
已过时.

创建 ValidatingConvention 的新实例。

属性

Dependencies
已过时.

此服务的依赖项。

方法

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)
已过时.

在模型最终确定后调用。

ProcessModelFinalized(IModel)
已过时.

在模型最终确定后调用,并且无法再发生更改。

适用于