Skip to content

DmTable ​

Namespace: MJCZone.DapperMatic.Models

Assembly: MJCZone.DapperMatic

Summary ​

Represents a table in a database.

public

Contents ​

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

Constructors ​

DmTable ​

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

csharp
DmTable()

DmTable ​

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

csharp
DmTable(string schemaName, string tableName, DmColumn[] columns, DmPrimaryKeyConstraint primaryKey, DmCheckConstraint[] checkConstraints, DmDefaultConstraint[] defaultConstraints, DmUniqueConstraint[] uniqueConstraints, DmForeignKeyConstraint[] foreignKeyConstraints, DmIndex[] indexes)

Parameters ​

  • schemaName (string) - The schema name of the table.
  • tableName (string) - The name of the table.
  • columns (DmColumn[]) - The columns of the table.
  • primaryKey (DmPrimaryKeyConstraint) - The primary key constraint of the table.
  • checkConstraints (DmCheckConstraint[]) - The check constraints of the table.
  • defaultConstraints (DmDefaultConstraint[]) - The default constraints of the table.
  • uniqueConstraints (DmUniqueConstraint[]) - The unique constraints of the table.
  • foreignKeyConstraints (DmForeignKeyConstraint[]) - The foreign key constraints of the table.
  • indexes (DmIndex[]) - The indexes of the table.

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 of the table.

Type: string?

TableName ​

Gets or sets the name of the table.

Type: string

Columns ​

Gets or sets the columns of the table.

Type: List<DmColumn>

PrimaryKeyConstraint ​

Gets or sets the primary key constraint of the table.

Type: DmPrimaryKeyConstraint?

CheckConstraints ​

Gets or sets the check constraints of the table.

Type: List<DmCheckConstraint>

DefaultConstraints ​

Gets or sets the default constraints of the table.

Type: List<DmDefaultConstraint>

UniqueConstraints ​

Gets or sets the unique constraints of the table.

Type: List<DmUniqueConstraint>

ForeignKeyConstraints ​

Gets or sets the foreign key constraints of the table.

Type: List<DmForeignKeyConstraint>

Indexes ​

Gets or sets the indexes of the table.

Type: List<DmIndex>