Appearance
ToSql Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Overloads
| Name | Description |
|---|---|
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
| Name | Description |
|---|---|
connection | Connection 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
| Name | Description |
|---|---|
generator | SQL generator used to build SQL for the target provider. |
Returns
A provider-specific SelectStatement representing this query.