Skip to content

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 ​

NameDescription
AddColumnsColumns that should be added to the table
AddForeignKeysForeign keys present on the model but missing in the database
AddFtsColumnsSource character columns that should gain provider FTS specials (Postgres TSVECTOR companion + GIN, or SQL Server FULLTEXT INDEX). Not ordinary IndexInformation model indexes.
AddIndexesIndexes present on the model but missing in the database
ChangeFillFactorWhen true, apply the model's FillFactor (Postgres)
CheckColumnsColumns where differences were detected
DropColumnsColumns that should be dropped from the table
DropForeignKeysForeign keys present in the database but missing on the model
DropFtsColumnsSource character columns whose provider FTS specials should be removed. Never drops the source column.
DropIndexesIndexes to drop: definition replacements, dependency drops for column removals, and orphans when compare was asked to include them.
TableTable Information
WarningsAwareness notices (for example, indexes dropped only because a column they reference is leaving). Does not block apply; callers should surface these to developers.