Skip to content

DmIndex ​

Namespace: MJCZone.DapperMatic.Models

Assembly: MJCZone.DapperMatic

Summary ​

Represents an index on a table.

public

Contents ​

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

Constructors ​

DmIndex ​

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

csharp
DmIndex()

DmIndex ​

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

csharp
DmIndex(string indexName, DmOrderedColumn[] columns, bool isUnique)

Parameters ​

  • indexName (string) - The index name.
  • columns (DmOrderedColumn[]) - The columns in the index.
  • isUnique (bool) - Indicates whether the index is unique.

DmIndex ​

Initializes a new instance of the DmIndex class.

csharp
DmIndex(
    string schemaName,
    string tableName,
    string indexName,
    DmOrderedColumn[] columns,
    bool isUnique)

Parameters ​

  • schemaName (string) - The schema name.
  • tableName (string) - The table name.
  • indexName (string) - The index name.
  • columns (DmOrderedColumn[]) - The columns in the index.
  • isUnique (bool) - Indicates whether the index is unique.

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

IndexName ​

Gets or sets the index name.

Type: string

Columns ​

Gets or sets the columns.

Type: List<DmOrderedColumn>

IsUnique ​

Gets or sets a value indicating whether the index is unique.

Type: bool

PreviousNames ​

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

Type: List&lt;string&gt;