Skip to content

ToSql Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Overloads ​

NameDescription
SelectStatement ToSql()Builds a SELECT statement for the current query using the connection's generator.
SelectStatement ToSql(IConnection connection)Builds a SELECT statement for the current query using the connection's generator.
SelectStatement ToSql(ISqlGenerator generator)Builds a SELECT statement for the current query using the provided generator.

SelectStatement ToSql() ​

csharp
SelectStatement ToSql()

Builds a SELECT statement for the current query using the connection's generator.

Returns ​

A provider-specific SelectStatement representing this query.

SelectStatement ToSql(IConnection connection) ​

csharp
SelectStatement ToSql(IConnection connection)

Builds a SELECT statement for the current query using the connection's generator.

Parameters ​

NameDescription
connectionConnection providing the ISqlGenerator used to build SQL.

Returns ​

A provider-specific SelectStatement representing this query.

SelectStatement ToSql(ISqlGenerator generator) ​

csharp
SelectStatement ToSql(ISqlGenerator generator)

Builds a SELECT statement for the current query using the provided generator.

Parameters ​

NameDescription
generatorSQL generator used to build SQL for the target provider.

Returns ​

A provider-specific SelectStatement representing this query.