Skip to content

ISqlOperationInterceptor.ExecuteScalarAsync method

namespace: Serenity.Data   assemblySerenity.Net.Services

Intercepts the async SqlHelperExecuteScalar methods. The default implementation forwards to ExecuteScalar.

public Task<OptionalValue<object>> ExecuteScalarAsync(string commandText, 
    IDictionary<string, object> parameters, SqlQuery query, 
    CancellationToken cancellationToken = default(CancellationToken))
parameter description
commandText The command text.
parameters The parameters.
query The query.
cancellationToken Cancellation token

See Also