Appearance
TableDifferences Constructors
Definition
- Namespace:
JASE.Database.Models - Assembly:
JASE.Database.dll
TableDifferences(ITableInfo Table, NamingStrategy NamingStrategy, IReadOnlyList<ValueTuple<IColumnInfo, IColumnInfo>> RenameColumns, IReadOnlyList<IColumnInfo> AddColumns, IReadOnlyList<IColumnInfo> DropColumns, IReadOnlyDictionary<IColumnInfo, List<ColumnDefinitionType>> CheckColumns, IReadOnlyList<Constraint> AddForeignKeys, IReadOnlyList<Constraint> DropForeignKeys, IReadOnlyList<IndexInformation> AddIndexes, IReadOnlyList<IndexInformation> DropIndexes, IReadOnlyList<SchemaChangeWarning> Warnings = null, bool ChangeFillFactor = null, IReadOnlyList<IColumnInfoCharacter> AddFtsColumns = null, IReadOnlyList<IColumnInfoCharacter> DropFtsColumns = null)
csharp
TableDifferences(ITableInfo Table, NamingStrategy NamingStrategy, IReadOnlyList<ValueTuple<IColumnInfo, IColumnInfo>> RenameColumns, IReadOnlyList<IColumnInfo> AddColumns, IReadOnlyList<IColumnInfo> DropColumns, IReadOnlyDictionary<IColumnInfo, List<ColumnDefinitionType>> CheckColumns, IReadOnlyList<Constraint> AddForeignKeys, IReadOnlyList<Constraint> DropForeignKeys, IReadOnlyList<IndexInformation> AddIndexes, IReadOnlyList<IndexInformation> DropIndexes, IReadOnlyList<SchemaChangeWarning> Warnings = null, bool ChangeFillFactor = null, IReadOnlyList<IColumnInfoCharacter> AddFtsColumns = null, IReadOnlyList<IColumnInfoCharacter> DropFtsColumns = null)Summary of differences between a current (database) table and a future (model) table.
Parameters
| Name | Description |
|---|---|
AddColumns | Columns that should be added to the table |
AddForeignKeys | Foreign keys present on the model but missing in the database |
AddFtsColumns | Source character columns that should gain provider FTS specials (Postgres TSVECTOR companion + GIN, or SQL Server FULLTEXT INDEX). Not ordinary IndexInformation model indexes. |
AddIndexes | Indexes present on the model but missing in the database |
ChangeFillFactor | When true, apply the model's FillFactor (Postgres) |
CheckColumns | Columns where differences were detected |
DropColumns | Columns that should be dropped from the table |
DropForeignKeys | Foreign keys present in the database but missing on the model |
DropFtsColumns | Source character columns whose provider FTS specials should be removed. Never drops the source column. |
DropIndexes | Indexes to drop: definition replacements, dependency drops for column removals, and orphans when compare was asked to include them. |
Table | Table Information |
Warnings | Awareness notices (for example, indexes dropped only because a column they reference is leaving). Does not block apply; callers should surface these to developers. |