Skip to content

CompareTable Method ​

Definition ​

  • Namespace: JASE.Database.SqlGenerators
  • Assembly: JASE.Database.dll

TableDifferences CompareTable(ITableInfo current, ITableInfo future, NamingStrategy namingStrategy, bool cloneConstraintsAndIndexes, bool dropOrphanIndexes = null) ​

csharp
TableDifferences CompareTable(ITableInfo current, ITableInfo future, NamingStrategy namingStrategy, bool cloneConstraintsAndIndexes, bool dropOrphanIndexes = null)

Compares a Table and current/future ColumnInfo data and generates differences

Parameters ​

NameDescription
cloneConstraintsAndIndexesWhen true, database constraints/indexes from current are applied to a working copy used for alter SQL (e.g. default constraint names). The future instance itself is never mutated — it may be a process-wide cached TableInfo.
dropOrphanIndexesWhen true, indexes present in the database but not on the model are included in DropIndexes. Defaults to false so hand-managed indexes are preserved.