IConventionCheckConstraint Interface

Definition

Represents a check constraint on the entity type.

public interface IConventionCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint
public interface IConventionCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable
public interface IConventionCheckConstraint : Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyCheckConstraint
type IConventionCheckConstraint = interface
    interface ICheckConstraint
type IConventionCheckConstraint = interface
    interface ICheckConstraint
    interface IAnnotatable
    interface IConventionAnnotatable
type IConventionCheckConstraint = interface
    interface IReadOnlyCheckConstraint
    interface IReadOnlyAnnotatable
    interface IConventionAnnotatable
Public Interface IConventionCheckConstraint
Implements ICheckConstraint
Public Interface IConventionCheckConstraint
Implements ICheckConstraint, IConventionAnnotatable
Public Interface IConventionCheckConstraint
Implements IConventionAnnotatable, IReadOnlyCheckConstraint
Implements

Remarks

See Database check constraints for more information and examples.

Properties

Builder

Gets the builder that can be used to configure this check constraint.

EntityType

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

IsInModel

Indicates whether this object is in a model, i.e. hasn't been removed from one.

(Inherited from IConventionAnnotatable)
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.

(Inherited from IReadOnlyCheckConstraint)
Name

Gets the database name of the check constraint.

(Inherited from IReadOnlyCheckConstraint)
Sql

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

(Inherited from IReadOnlyCheckConstraint)

Methods

AddAnnotation(String, Object, Boolean)

Adds an annotation to this object. Throws if an annotation with the specified name already exists.

(Inherited from IConventionAnnotatable)
AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean)

Adds annotations to an object.

(Inherited from IConventionAnnotatable)
AddRuntimeAnnotation(String, Object)

Adds a runtime annotation to this object. Throws if an annotation with the specified name already exists.

(Inherited from IAnnotatable)
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)
FindRuntimeAnnotation(String)

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

(Inherited from IAnnotatable)
FindRuntimeAnnotationValue(String)

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

(Inherited from IAnnotatable)
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)
GetConfigurationSource()

Gets the configuration source for this check constraint.

GetDefaultName()

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

(Inherited from IReadOnlyCheckConstraint)
GetDefaultName(StoreObjectIdentifier)

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

(Inherited from IReadOnlyCheckConstraint)
GetName(StoreObjectIdentifier)

Gets the database name of the check constraint.

(Inherited from IReadOnlyCheckConstraint)
GetNameConfigurationSource()

Gets the configuration source for the database name.

GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

Gets the value of the runtime annotation with the given name, adding it if one does not exist.

(Inherited from IAnnotatable)
GetRuntimeAnnotations()

Gets all the runtime annotations on the current object.

(Inherited from IAnnotatable)
RemoveAnnotation(String)

Removes the annotation with the given name from this object.

(Inherited from IConventionAnnotatable)
RemoveRuntimeAnnotation(String)

Removes the given runtime annotation from this object.

(Inherited from IAnnotatable)
SetAnnotation(String, Object, Boolean)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists.

(Inherited from IConventionAnnotatable)
SetName(String, Boolean)

Sets the name of the check constraint in the database.

SetOrRemoveAnnotation(String, Object, Boolean)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists. Removes the existing annotation if null is supplied.

(Inherited from IConventionAnnotatable)
SetRuntimeAnnotation(String, Object)

Sets the runtime annotation stored under the given key. Overwrites the existing annotation if an annotation with the specified name already exists.

(Inherited from IAnnotatable)
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.

(Inherited from IReadOnlyCheckConstraint)

Extension Methods

AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean)

Adds annotations to an object.

GetAnnotation(IConventionAnnotatable, String)

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

SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists. Removes the existing annotation if null is supplied.

AnnotationsToDebugString(IAnnotatable, Int32)

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

GetAnnotation(IAnnotatable, String)

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

ToDebugString(ICheckConstraint, 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