Skip to content

DmCheckConstraint ​

Namespace: MJCZone.DapperMatic.Models

Assembly: MJCZone.DapperMatic

Summary ​

Represents a check constraint in a database.

Inheritance ​

Base Class: DmConstraint

public

Contents ​

Constructors (2) | Methods (4) | Properties (6)

Constructors ​

DmCheckConstraint ​

Initializes a new instance of the MJCZone.DapperMatic.Models.DmCheckConstraint class. Used for deserialization.

csharp
DmCheckConstraint()

DmCheckConstraint ​

Initializes a new instance of the MJCZone.DapperMatic.Models.DmCheckConstraint class.

csharp
DmCheckConstraint(string schemaName, string tableName, string columnName, string constraintName, string expression)

Parameters ​

  • schemaName (string) - The schema name.
  • tableName (string) - The table name.
  • columnName (string) - The column name.
  • constraintName (string) - The constraint name.
  • expression (string) - The expression.

Methods ​

ToString ​

Returns a string representation of the constraint.

csharp
string ToString()

Returns ​

Type: string

A string representation of the constraint.

GetType ​

csharp
void GetType()

Equals ​

csharp
void Equals()

GetHashCode ​

csharp
void GetHashCode()

Properties ​

SchemaName ​

Gets or sets the schema name.

Type: string?

TableName ​

Gets or sets the table name.

Type: string

ColumnName ​

Gets or sets the column name.

Type: string?

Expression ​

Gets or sets the expression.

Type: string

ConstraintType ​

Gets the constraint type.

Type: DmConstraintType

ConstraintName ​

Gets or sets the name of the constraint.

Type: object