Table of Contents

Interface IExecuteReader

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

Common interface used for expressive commands when dealing with a data reader.

public interface IExecuteReader
Extension Methods

Properties

CancellationToken

The cancellation token to use with supported methods.

Methods

ExecuteReader(Action<IDataReader>, CommandBehavior)

Executes a reader on a command with a handler function.

ExecuteReaderAsync(Func<IDataReader, ValueTask>, CommandBehavior)

Executes a reader on a command with a handler function.

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

Executes a reader on a command with a handler function.

ExecuteReaderAsync<TState, TResult>(TState, Func<IDataReader, TState, ValueTask<TResult>>, CommandBehavior)

Executes a reader on a command, passing state to transform. Pass a static lambda and the state it needs to avoid allocating a closure per call.

ExecuteReader<T>(Func<IDataReader, T>, CommandBehavior)

Executes a reader on a command with a transform function.

ExecuteReader<TState, TResult>(TState, Func<IDataReader, TState, TResult>, CommandBehavior)

Executes a reader on a command, passing state to transform. Pass a static lambda and the state it needs to avoid allocating a closure per call.