Skip to content

DmUniqueConstraint ​

Namespace: MJCZone.DapperMatic.Models

Assembly: MJCZone.DapperMatic

Summary ​

Represents a unique constraint on a table.

Inheritance ​

Base Class: DmConstraint

public

Contents ​

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

Constructors ​

DmUniqueConstraint ​

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

csharp
DmUniqueConstraint()

DmUniqueConstraint ​

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

csharp
DmUniqueConstraint(string constraintName, DmOrderedColumn[] columns)

Parameters ​

  • constraintName (string) - The constraint name.
  • columns (DmOrderedColumn[]) - The columns.

DmUniqueConstraint ​

Initializes a new instance of the DmUniqueConstraint class.

csharp
DmUniqueConstraint(
    string schemaName,
    string tableName,
    string constraintName,
    DmOrderedColumn[] columns)

Parameters ​

  • schemaName (string) - The schema name.
  • tableName (string) - The table name.
  • constraintName (string) - The constraint name.
  • columns (DmOrderedColumn[]) - The columns.

Methods ​

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

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

Columns ​

Gets or sets the columns.

Type: List<DmOrderedColumn>

ConstraintType ​

Gets the type of the constraint.

Type: DmConstraintType

ConstraintName ​

Gets or sets the name of the constraint.

Type: object

PreviousNames ​

Gets or sets the names this constraint has had before, most recent first.

Type: object