DmSchemaDrift
Namespace: MJCZone.DapperMatic.Models
Assembly: MJCZone.DapperMatic
Summary
Describes a schema element that exists in both the model and the database but does not match.
sealed public
Contents
Constructors (1) | Methods (4) | Properties (5)
Constructors
DmSchemaDrift
Initializes a new instance of the DmSchemaDrift class.
csharp
DmSchemaDrift(
DmSchemaElementType elementType,
string name,
string expected,
string actual,
string description)Parameters
- elementType (DmSchemaElementType) - The kind of element that differs.
- name (string) - The name of the element that differs.
- expected (string) - The value described by the model.
- actual (string) - The value found in the database.
- description (string) - A human-readable summary of the difference.
Methods
ToString
Returns a human-readable description of the drift.
csharp
string ToString()Returns
Type: string
A string describing the element, the expected value and the actual value.
GetType
csharp
GetType()Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()Properties
ElementType
Gets the kind of element that differs.
Type: DmSchemaElementType
Name
Gets the name of the element that differs.
Type: string
Expected
Gets the value described by the model.
Type: string
Actual
Gets the value found in the database.
Type: string
Description
Gets a human-readable summary of the difference.
Type: string