Appearance
CompareTable Method
Definition
- Namespace:
JASE.Database - 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
| Name | Description |
|---|---|
cloneConstraintsAndIndexes | When 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. |
dropOrphanIndexes | When true, indexes present in the database but not on the model are included in DropIndexes. Defaults to false so hand-managed indexes are preserved. |