Skip to content

TQueryTableExtensions_CreateAllTablesIfNotExists_swtCIE_YcL5KOByDlNdpZQ

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

TQueryTableExtensions.CreateAllTablesIfNotExists(TQueryDatabaseExtended) Method

Checks each table if exists on the database, and creates the non-exists Tables on the server database, based on the code classes with [Table] attribute. Supported attributes are: [Key] for Primary Key, [AutoIncrement] for Auto Increment property, [Required] for Not Null property.

public static DbEasyConnect.TQueryDatabaseExtended CreateAllTablesIfNotExists(this DbEasyConnect.TQueryDatabaseExtended tQuery);

Parameters

tQuery TQueryDatabaseExtended
An TQueryDatabaseExtended to perform the Create All Tables command.

Returns

TQueryDatabaseExtended
An TQueryDatabaseExtended instance, which the SQL command will create all non-exists Tables on the database, and Execute() will execute the Create All Tables command.

Clone this wiki locally