Skip to content

DmDefaultConstraint

Namespace: MJCZone.DapperMatic.Models

Assembly: MJCZone.DapperMatic

Summary

Represents a default constraint on a table.

Inheritance

Base Class: DmConstraint

public

Contents

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

Constructors

DmDefaultConstraint

Initializes a new instance of the DmDefaultConstraint class. Used for deserialization.

csharp
DmDefaultConstraint()

DmDefaultConstraint

Initializes a new instance of the DmDefaultConstraint class. Used when schema name and table name are not necessary as when creating a table.

csharp
DmDefaultConstraint(string columnName, string constraintName, string expression)

Parameters

  • columnName (string) - The column name.
  • constraintName (string) - The constraint name.
  • expression (string) - The expression.

DmDefaultConstraint

Initializes a new instance of the DmDefaultConstraint class.

csharp
DmDefaultConstraint(
    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
GetType()

Equals

csharp
Equals()

GetHashCode

csharp
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