共用方式為


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)
已淘汰.

在模型完成之後呼叫,且無法再進行變動。

適用於