Table of Contents

Method AsAsyncEnumerable

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

AsAsyncEnumerable(DbDataReader, CancellationToken)

Provides an enumerable for iterating all the remaining values of the current result set of a data reader.

public static IAsyncEnumerable<object[]> AsAsyncEnumerable(this DbDataReader reader, CancellationToken cancellationToken = default)

Parameters

reader DbDataReader

The reader to enumerate.

cancellationToken CancellationToken

Optional iteration cancellation token.

Returns

IAsyncEnumerable<object[]>

An enumerable of the values returned from a data reader.

Remarks

DBNull values are retained.

AsAsyncEnumerable(DbDataReader, ArrayPool<object>?, CancellationToken)

Provides an enumerable for iterating all the remaining values of the current result set of a data reader.

public static IAsyncEnumerable<object[]> AsAsyncEnumerable(this DbDataReader reader, ArrayPool<object>? arrayPool, CancellationToken cancellationToken = default)

Parameters

reader DbDataReader

The reader to enumerate.

arrayPool ArrayPool<object>

An optional array pool to acquire buffers from.

cancellationToken CancellationToken

Optional iteration cancellation token.

Returns

IAsyncEnumerable<object[]>

An enumerable of the values returned from a data reader.

Remarks

DBNull values are retained.

AsAsyncEnumerable(DbDataReader, IEnumerable<int>, CancellationToken)

Provides an enumerable for iterating all the remaining values of the current result set of a data reader.

public static IAsyncEnumerable<object[]> AsAsyncEnumerable(this DbDataReader reader, IEnumerable<int> ordinals, CancellationToken cancellationToken = default)

Parameters

reader DbDataReader

The reader to enumerate.

ordinals IEnumerable<int>

The limited set of ordinals to include. If none are specified, the returned objects will be empty.

cancellationToken CancellationToken

Optional iteration cancellation token.

Returns

IAsyncEnumerable<object[]>

An enumerable of the values returned from a data reader.

Remarks

DBNull values are retained.

AsAsyncEnumerable(DbDataReader, IEnumerable<int>, ArrayPool<object>?, CancellationToken)

Provides an enumerable for iterating all the remaining values of the current result set of a data reader.

public static IAsyncEnumerable<object[]> AsAsyncEnumerable(this DbDataReader reader, IEnumerable<int> ordinals, ArrayPool<object>? arrayPool, CancellationToken cancellationToken = default)

Parameters

reader DbDataReader

The reader to enumerate.

ordinals IEnumerable<int>

The limited set of ordinals to include. If none are specified, the returned objects will be empty.

arrayPool ArrayPool<object>

The array pool to acquire buffers from.

cancellationToken CancellationToken

Optional iteration cancellation token.

Returns

IAsyncEnumerable<object[]>

An enumerable of the values returned from a data reader.

Remarks

DBNull values are retained.

AsAsyncEnumerable(DbDataReader, CancellationToken, int, params IEnumerable<int>)

Provides an enumerable for iterating all the remaining values of the current result set of a data reader.

public static IAsyncEnumerable<object[]> AsAsyncEnumerable(this DbDataReader reader, CancellationToken cancellationToken, int n, params IEnumerable<int> others)

Parameters

reader DbDataReader

The reader to enumerate.

cancellationToken CancellationToken

The iteration cancellation token.

n int

The first ordinal to include in the request to the reader for each record.

others IEnumerable<int>

The remaining ordinals to request from the reader for each record.

Returns

IAsyncEnumerable<object[]>

An enumerable of the values returned from a data reader.

Remarks

DBNull values are retained.

AsAsyncEnumerable(DbDataReader, ArrayPool<object>?, CancellationToken, int, params IEnumerable<int>)

Provides an enumerable for iterating all the remaining values of the current result set of a data reader.

public static IAsyncEnumerable<object[]> AsAsyncEnumerable(this DbDataReader reader, ArrayPool<object>? arrayPool, CancellationToken cancellationToken, int n, params IEnumerable<int> others)

Parameters

reader DbDataReader

The reader to enumerate.

arrayPool ArrayPool<object>

The array pool to acquire buffers from.

cancellationToken CancellationToken

The iteration cancellation token.

n int

The first ordinal to include in the request to the reader for each record.

others IEnumerable<int>

The remaining ordinals to request from the reader for each record.

Returns

IAsyncEnumerable<object[]>

An enumerable of the values returned from a data reader.

Remarks

DBNull values are retained.

AsAsyncEnumerable(DbDataReader, int, params IEnumerable<int>)

Provides an enumerable for iterating all the remaining values of the current result set of a data reader.

public static IAsyncEnumerable<object[]> AsAsyncEnumerable(this DbDataReader reader, int n, params IEnumerable<int> others)

Parameters

reader DbDataReader

The reader to enumerate.

n int

The first ordinal to include in the request to the reader for each record.

others IEnumerable<int>

The remaining ordinals to request from the reader for each record.

Returns

IAsyncEnumerable<object[]>

An enumerable of the values returned from a data reader.

Remarks

DBNull values are retained.

AsAsyncEnumerable(DbDataReader, ArrayPool<object>?, int, params IEnumerable<int>)

Provides an enumerable for iterating all the remaining values of the current result set of a data reader.

public static IAsyncEnumerable<object[]> AsAsyncEnumerable(this DbDataReader reader, ArrayPool<object>? arrayPool, int n, params IEnumerable<int> others)

Parameters

reader DbDataReader

The reader to enumerate.

arrayPool ArrayPool<object>

The array pool to acquire buffers from.

n int

The first ordinal to include in the request to the reader for each record.

others IEnumerable<int>

The remaining ordinals to request from the reader for each record.

Returns

IAsyncEnumerable<object[]>

An enumerable of the values returned from a data reader.

Remarks

DBNull values are retained.