-
Notifications
You must be signed in to change notification settings - Fork 0
TQueryTableExtensions_ModifyTable_WS6s6TEOCpCFyuvtfaE5HA
J. Spitzer edited this page Oct 6, 2021
·
2 revisions
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 Dapper.TQuery.TQueryableCreate<Table> ModifyTable<Table>(this Dapper.TQuery.TQueryableExtended<Table> tQuery);
Table
The type of the records of table class. need to be a class with the [Table("")] attribute.
tQuery
Dapper.TQuery.TQueryableExtended<Table>
An TQueryable<T> to perform the Modify Table command.
Dapper.TQuery.TQueryableCreate<Table>
An TQueryableCreate<T> instance, which the SQL command will Modify the Table in the database, and Execute() will execute the Modify Table command.