DmTableReconciliationPlan
Namespace: MJCZone.DapperMatic.Models
Assembly: MJCZone.DapperMatic
Summary
Describes the difference between a table as described by a model and the table as it exists in the database, together with the additive work needed to bring the database in line with the model.
sealed public
Contents
Constructors (1) | Methods (4) | Properties (18)
Constructors
DmTableReconciliationPlan
DmTableReconciliationPlan()Methods
GetType
GetType()ToString
ToString()Equals
Equals()GetHashCode
GetHashCode()Properties
SchemaName
Gets the schema name of the table, if the provider supports schemas.
Type: string?
TableName
Gets the name of the table.
Type: string
TableMissing
Gets a value indicating whether the table does not exist in the database.
Type: bool
Elements
Gets the element kinds this plan was computed for.
Type: DmReconcileElements
MissingColumns
Gets the columns present in the model but missing from the database.
Type: IReadOnlyList<DmColumn>
MissingPrimaryKeyConstraint
Gets the primary key constraint to create, or <see langword="null" /> when the table already has a primary key or the model does not describe one.
Type: DmPrimaryKeyConstraint?
MissingUniqueConstraints
Gets the unique constraints present in the model but missing from the database.
Type: IReadOnlyList<DmUniqueConstraint>
MissingCheckConstraints
Gets the check constraints present in the model but missing from the database.
Type: IReadOnlyList<DmCheckConstraint>
MissingDefaultConstraints
Gets the default constraints present in the model but missing from the database.
Type: IReadOnlyList<DmDefaultConstraint>
MissingIndexes
Gets the indexes present in the model but missing from the database.
Type: IReadOnlyList<DmIndex>
MissingForeignKeyConstraints
Gets the foreign key constraints present in the model but missing from the database.
Type: IReadOnlyList<DmForeignKeyConstraint>
Alterations
Gets the changes to existing columns that cannot lose data. Planned only when the plan was asked for safe alterations; otherwise the same differences appear in Drift.
Type: IReadOnlyList<DmColumnAlteration>
Renames
Gets the elements that exist under an earlier name and are renamed instead of created, in the order the renames are made: the table, then columns, then indexes and constraints.
Type: IReadOnlyList<DmSchemaRename>
Blocked
Gets the elements that the model describes but that cannot be created yet, because a column they depend on is absent from the database and is not being added by this plan.
Type: IReadOnlyList<DmSchemaAddition>
Drift
Gets the elements that exist on both sides but do not match.
Type: IReadOnlyList<DmSchemaDrift>
HasChanges
Gets a value indicating whether applying this plan would change the database.
Type: bool
HasDrift
Gets a value indicating whether any drift was detected between the model and the database.
Type: bool
Additions
Gets a flat, human-readable list of every element this plan would create.
Type: IReadOnlyList<DmSchemaAddition>