IReadOnlyCheckConstraint Interface

Definition

Represents a check constraint on the entity type.

public interface IReadOnlyCheckConstraint : Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
type IReadOnlyCheckConstraint = interface
    interface IReadOnlyAnnotatable
Public Interface IReadOnlyCheckConstraint
Implements IReadOnlyAnnotatable
Derived
Implements

Remarks

See Database check constraints for more information and examples.

Properties

EntityType

Gets the entity type on which this check constraint is defined.

Item[String]

Gets the value of the annotation with the given name, returning null if it does not exist.

(Inherited from IReadOnlyAnnotatable)
ModelName

Gets the name of the check constraint in the model.

Name

Gets the database name of the check constraint.

Sql

Gets the constraint sql used in a check constraint in the database.

Methods

AnnotationsToDebugString(Int32)

Gets the debug string for all annotations declared on the object.

(Inherited from IReadOnlyAnnotatable)
FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

(Inherited from IReadOnlyAnnotatable)
GetAnnotation(String)

Gets the annotation with the given name, throwing if it does not exist.

(Inherited from IReadOnlyAnnotatable)
GetAnnotations()

Gets all annotations on the current object.

(Inherited from IReadOnlyAnnotatable)
GetDefaultName()

Returns the default database name that would be used for this check constraint.

GetDefaultName(StoreObjectIdentifier)

Returns the default database name that would be used for this check constraint.

GetName(StoreObjectIdentifier)

Gets the database name of the check constraint.

ToDebugString(MetadataDebugStringOptions, Int32)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

Applies to