Skip to content

TQueryTableExtensions_CreateTableIfNotExists_U6MQPWiXRRZlsnvpBbOrQQ

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

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

Creates a Table on the server database if not exists, based on the code table properties. Supported attributes are: [Key] for Primary Key, [AutoIncrement] for Auto Increment property, [Required] for Not Null property.

public static void CreateTableIfNotExists<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 Create Table command.

Clone this wiki locally