ISqlOperationInterceptor.ExecuteNonQueryAsync method
namespace: Serenity.Data assembly: Serenity.Net.Services
Intercepts the async SqlHelperExecute methods (SqlDelete/SqlUpdate/SqlInsert). The default implementation forwards to ExecuteNonQuery.
public Task<OptionalValue<long?>> ExecuteNonQueryAsync(string commandText,
IDictionary<string, object> parameters, ExpectedRows expectedRows, IQueryWithParams query,
bool getNewId, CancellationToken cancellationToken = default(CancellationToken))
| parameter | description |
|---|---|
| commandText | The command text. |
| parameters | The parameters. |
| expectedRows | The expected rows. |
| query | The query. |
| getNewId | True if InsertAndGetIDAsync is called. |
| cancellationToken | Cancellation token |
See Also
- struct OptionalValue<T>
- enum ExpectedRows
- interface IQueryWithParams
- interface ISqlOperationInterceptor