Прочетете на английски

Споделяне чрез


ValidatingConvention Class

Definition

Caution

The validation is no longer performed by a convention

A convention that checks whether the model is valid.

C#
public class ValidatingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
C#
[System.Obsolete("The validation is no longer performed by a convention")]
public class ValidatingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
Inheritance
ValidatingConvention
Attributes
Implements

Remarks

See Model building conventions for more information.

Constructors

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

Продукт Версии (остаряло)
Entity Framework Core 3.0, 3.1, 5.0 (6.0)