Skip to content

DmPrimaryKeyConstraint ​

Namespace: MJCZone.DapperMatic.Models

Assembly: MJCZone.DapperMatic

Summary ​

Represents a primary key constraint on a table.

Inheritance ​

Base Class: DmConstraint

public

Contents ​

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

Constructors ​

DmPrimaryKeyConstraint ​

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

csharp
DmPrimaryKeyConstraint()

DmPrimaryKeyConstraint ​

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

csharp
DmPrimaryKeyConstraint(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 that make up the primary key.

Methods ​

GetType ​

csharp
void GetType()

ToString ​

csharp
void ToString()

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

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