ValidatingConvention Class

Definition

Caution

The validation is no longer performed by a convention

A convention that checks whether the model is valid.

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
Inheritance
ValidatingConvention
Attributes
Implements

Remarks

See Model building conventions for more information.

Constructors

ValidatingConvention(ProviderConventionSetBuilderDependencies)

Creates a new instance of ValidatingConvention.

Properties

Dependencies

Dependencies for this service.

Methods

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called after a model is finalized.

ProcessModelFinalized(IModel)

Called after a model is finalized and can no longer be mutated.

Applies to