Method ExecuteScalarAsync
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
ExecuteScalarAsync()
Calls ExecuteScalarAsync on the underlying command.
public ValueTask<object?> ExecuteScalarAsync()
Returns
ExecuteScalarAsync<T>(Func<object?, T>)
Asynchronously executes scalar on the underlying command.
public ValueTask<T> ExecuteScalarAsync<T>(Func<object?, T> transform)
Parameters
Returns
- ValueTask<T>
The value returned from the method.
Type Parameters
TThe type expected.
ExecuteScalarAsync<T>()
Asynchronously executes scalar on the underlying command and casts to the expected type.
public ValueTask<T> ExecuteScalarAsync<T>()
Returns
- ValueTask<T>
The value returned from the method.
Type Parameters
TThe type expected.
ExecuteScalarAsync<T>(Func<object?, ValueTask<T>>)
Asynchronously executes scalar on the underlying command.
public ValueTask<T> ExecuteScalarAsync<T>(Func<object?, ValueTask<T>> transform)
Parameters
Returns
- ValueTask<T>
The value returned from the method.
Type Parameters
TThe type expected.