Skip to content

TQueryStartExtensions_TQueryDbExtended_UrvC1zWI4uDbm8nCnsKTGw

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

TQueryStartExtensions.TQueryDbExtended<Table>(SqlConnection, SqlDialect) Method

Initializes a new instance of the TQueryDatabase class.

public static DbEasyConnect.TQueryDatabase TQueryDbExtended(this SqlConnection sqlConnection, DbEasyConnect.SqlDialect sqlDialect=DbEasyConnect.SqlDialect.SqlServer);

Type parameters

Table

Parameters

sqlConnection System.Data.SqlClient.SqlConnection
The SqlConnection to be used to connect to the Server Database.

sqlDialect SqlDialect
The relevant SqlDialect for the current database. Available options: SQL Server, MySQL, Oracle, SQLite, and PostgreSQL. these are all different databases that have their own slightly different SQL dialects. If no dialect was given, the default dialect SqlServer will be used.

Returns

TQueryDatabase
An TQueryDatabase instanse which will be used to modify the Database table defenitions with TQuery method extensions with advanced options of the TQuery library, to read/modify the generated SQL command, and more.

Clone this wiki locally