CheckConstraintBuilder Class

Definition

Provides a simple API for configuring a check constraint.

public class CheckConstraintBuilder : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionCheckConstraintBuilder>
type CheckConstraintBuilder = class
    interface IInfrastructure<IConventionCheckConstraintBuilder>
Public Class CheckConstraintBuilder
Implements IInfrastructure(Of IConventionCheckConstraintBuilder)
Inheritance
CheckConstraintBuilder
Implements

Remarks

See Database check constraints for more information.

Constructors

CheckConstraintBuilder(IMutableCheckConstraint)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Properties

Builder

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Metadata

The check constraint being configured.

Methods

HasName(String)

Sets the database name of the check constraint.

Explicit Interface Implementations

IInfrastructure<IConventionCheckConstraintBuilder>.Instance

Gets the value of the property being hidden.

Extension Methods

GetInfrastructure<T>(IInfrastructure<T>)

Gets the value from a property that is being hidden using IInfrastructure<T>.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

IInfrastructure<T> is used to hide properties that are not intended to be used in application code but can be used in extension methods written by database providers etc.

Applies to