ExecuteQueryAsync Method
ExecuteQueryAsync(ISqlService, string, params object[])
Executes a SQL query.
Declaration
public static Task<ISqlQueryResult> ExecuteQueryAsync(this ISqlService service, string sql, params object[] parameters)
Parameters
| ISqlService | service | The ISqlService which executes the query. |
| string | sql | The SQL query text to execute. |
| object[] | parameters | Parameters for the SQL query. |
Returns
| Task<ISqlQueryResult> | An ISqlQueryResult instance that represents the result of the query. |
ExecuteQueryAsync(ISqlService, string, CancellationToken)
Executes a SQL query.
Declaration
public static Task<ISqlQueryResult> ExecuteQueryAsync(this ISqlService service, string sql, CancellationToken cancellationToken)
Parameters
| ISqlService | service | The ISqlService which executes the query. |
| string | sql | The SQL query text to execute. |
| CancellationToken | cancellationToken | A cancellation token. |
Returns
| Task<ISqlQueryResult> | An ISqlQueryResult instance that represents the result of the query. |
ExecuteQueryAsync(ISqlService, string, SqlStatementOptions, CancellationToken)
Executes a SQL query.
Declaration
public static Task<ISqlQueryResult> ExecuteQueryAsync(this ISqlService service, string sql, SqlStatementOptions options, CancellationToken cancellationToken = default)
Parameters
| ISqlService | service | The ISqlService which executes the query. |
| string | sql | The SQL query text to execute. |
| SqlStatementOptions | options | Options for the SQL query. |
| CancellationToken | cancellationToken | A cancellation token. |
Returns
| Task<ISqlQueryResult> | An ISqlQueryResult instance that represents the result of the query. |