ExecuteCommandAsync Method
ExecuteCommandAsync(ISqlService, string, params object[])
Executes an SQL command.
Declaration
public static Task<long> ExecuteCommandAsync(this ISqlService service, string sql, params object[] parameters)
Parameters
ISql |
service | The ISql |
string | sql | The SQL command text to execute. |
object[] | parameters | Parameters for the SQL command. |
Returns
ExecuteCommandAsync(ISqlService, string, SqlStatementOptions, CancellationToken)
Executes an SQL command.
Declaration
public static Task<long> ExecuteCommandAsync(this ISqlService service, string sql, SqlStatementOptions options, CancellationToken cancellationToken = default)
Parameters
ISql |
service | The ISql |
string | sql | The SQL command text to execute. |
Sql |
options | Options for the SQL command. |
Cancellation |
cancellationToken | A cancellation token. |