Skip to content

TQueryTableExtensions_ModifyTable_WS6s6TEOCpCFyuvtfaE5HA

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

TQueryTableExtensions.ModifyTable<Table>(DbEcExtended<Table>) Method

Modifies a table definition on the server database by altering, adding, or dropping columns and column datatypes, based on the code table properties. Available modifications: Add field, Remove field, Change field datatype.

public static DbEasyConnect.DbEcCreate<Table> ModifyTable<Table>(this DbEasyConnect.DbEcExtended<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.DbEcExtended<Table>
An DbEc<T> to perform the Modify Table command.

Returns

DbEasyConnect.DbEcCreate<Table>
An DbEcCreate<T> instance, which the SQL command will Modify the Table in the database, and Execute() will execute the Modify Table command.

Clone this wiki locally