Skip to content

TQueryTableExtensions_GetDiffServerTableToCodeTable_Or1WeGAwFaOW_wPPlbPB9Q

Jacob Spitzer edited this page Aug 28, 2022 · 2 revisions

TQueryTableExtensions.GetDiffServerTableToCodeTable<Table>(DbEc<Table>) Method

Compares the server table and the code class with that table name, checks each field and their properties.

public static System.Collections.Generic.List<DbEasyConnect.TQueryTableExtensions.CompareDb> GetDiffServerTableToCodeTable<Table>(this DbEasyConnect.DbEc<Table> tQuery);

Type parameters

Table
The type of the records of table class. need to be a class with the [Table("")] attribute.

Parameters

tQuery DbEasyConnect.DbEc<Table>
An DbEc<T> to perform the Drop Table command.

Returns

System.Collections.Generic.List<CompareDb>
An list of CompareDb objects, which includes all differences between the server database and the code classes with [Table] attribute.

Clone this wiki locally