Skip to content

DmSchemaAddition ​

Namespace: MJCZone.DapperMatic.Models

Assembly: MJCZone.DapperMatic

Summary ​

Describes a single schema element that reconciliation would create, or did create.

sealed public

Contents ​

Constructors (1) | Methods (4) | Properties (4)

Constructors ​

DmSchemaAddition ​

Initializes a new instance of the DmSchemaAddition class.

csharp
DmSchemaAddition(DmSchemaElementType elementType, string name, string note)

Parameters ​

  • elementType (DmSchemaElementType) - The kind of element.
  • name (string) - The name of the element.
  • note (string) - An optional explanation, used when the element could not be created.

Methods ​

ToString ​

Returns a human-readable description of the addition.

csharp
string ToString()

Returns ​

Type: string

A string naming the element kind and the element.

GetType ​

csharp
GetType()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

ElementType ​

Gets the kind of element.

Type: DmSchemaElementType

Name ​

Gets the name of the element.

Type: string

Note ​

Gets an optional explanation, set when the element could not be created.

Type: string?

Unsupported ​

Gets a value indicating whether the element is blocked because the database server cannot hold it at all, as MySQL before 8.0.16 cannot hold a check constraint: no run will create it, so it does not keep a migration from recording the table.

Type: bool