ExecuteQueryAsync Method
ExecuteQueryAsync(ISqlService, String, 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(CancellationToken))
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. |