Table of Contents

Method ExecuteScalarAsync

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

ExecuteScalarAsync()

Calls ExecuteScalarAsync on the underlying command.

public ValueTask<object?> ExecuteScalarAsync()

Returns

ValueTask<object>

The value returned from the method.

ExecuteScalarAsync<T>(Func<object?, T>)

Asynchronously executes scalar on the underlying command.

public ValueTask<T> ExecuteScalarAsync<T>(Func<object?, T> transform)

Parameters

transform Func<object, T>

The transform function for the result.

Returns

ValueTask<T>

The value returned from the method.

Type Parameters

T

The 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

T

The 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

transform Func<object, ValueTask<T>>

The transform function (task) for the result.

Returns

ValueTask<T>

The value returned from the method.

Type Parameters

T

The type expected.