Table of Contents

Interface ICheckConstraint

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Represents a check constraint in the Microsoft.EntityFrameworkCore.Metadata.IEntityType.

public interface ICheckConstraint : IAnnotatable
Extension Methods

Properties

EntityType

Gets the Microsoft.EntityFrameworkCore.Metadata.IEntityType in which this check constraint is defined.

IEntityType EntityType { get; }

Property Value

IEntityType

Name

Gets the name of the check constraint in the database.

string Name { get; }

Property Value

string

Sql

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

string Sql { get; }

Property Value

string