CheckConstraintConvention Class

Definition

A convention that ensures that the check constraints on the derived types are compatible with the check constraints on the base type. And also ensures that the declaring type is current.

public class CheckConstraintConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
type CheckConstraintConvention = class
    interface IEntityTypeBaseTypeChangedConvention
    interface IConvention
    interface IEntityTypeAddedConvention
Public Class CheckConstraintConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention
Inheritance
CheckConstraintConvention
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

CheckConstraintConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Creates a new instance of CheckConstraintConvention.

Properties

Dependencies

Dependencies for this service.

RelationalDependencies

Relational provider-specific dependencies for this service.

Methods

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Called after an entity type is added to the model.

ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Called after the base type of an entity type changes.

Applies to