DmCheckConstraint
Namespace: MJCZone.DapperMatic.Models
Assembly: MJCZone.DapperMatic
Summary
Represents a check constraint in a database.
Inheritance
Base Class: DmConstraint
public
Contents
Constructors (3) | Methods (4) | Properties (6)
Constructors
DmCheckConstraint
Initializes a new instance of the DmCheckConstraint class. Used for deserialization.
DmCheckConstraint()DmCheckConstraint
Initializes a new instance of the DmCheckConstraint class. Used when schema name and table name are not necessary as when creating a table.
DmCheckConstraint(string columnName, string constraintName, string expression)Parameters
- columnName (string) - The column name.
- constraintName (string) - The constraint name.
- expression (string) - The expression.
DmCheckConstraint
Initializes a new instance of the DmCheckConstraint class.
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.
string ToString()Returns
Type: string
A string representation of the constraint.
GetType
GetType()Equals
Equals()GetHashCode
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