Table of Contents

Method ExecuteReaderAsync

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

ExecuteReaderAsync(Func<TReader, ValueTask>, CommandBehavior)

Executes a reader on a command with a handler function.

ValueTask ExecuteReaderAsync(Func<out TReader, ValueTask> handler, CommandBehavior behavior = CommandBehavior.Default)

Parameters

handler Func<TReader, ValueTask>

The handler function for the data reader.

behavior CommandBehavior

The command behavior for once the command the reader is complete.

Returns

ValueTask

ExecuteReaderAsync<T>(Func<TReader, ValueTask<T>>, CommandBehavior)

Executes a reader on a command with a handler function.

ValueTask<T> ExecuteReaderAsync<T>(Func<out TReader, ValueTask<T>> handler, CommandBehavior behavior = CommandBehavior.Default)

Parameters

handler Func<TReader, ValueTask<T>>

The handler function for the data reader.

behavior CommandBehavior

The command behavior for once the command the reader is complete.

Returns

ValueTask<T>

Type Parameters

T