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
readerDbDataReaderThe reader to enumerate.
cancellationTokenCancellationTokenOptional 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
readerDbDataReaderThe reader to enumerate.
arrayPoolArrayPool<object>An optional array pool to acquire buffers from.
cancellationTokenCancellationTokenOptional 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
readerDbDataReaderThe reader to enumerate.
ordinalsIEnumerable<int>The limited set of ordinals to include. If none are specified, the returned objects will be empty.
cancellationTokenCancellationTokenOptional 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
readerDbDataReaderThe reader to enumerate.
ordinalsIEnumerable<int>The limited set of ordinals to include. If none are specified, the returned objects will be empty.
arrayPoolArrayPool<object>The array pool to acquire buffers from.
cancellationTokenCancellationTokenOptional 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
readerDbDataReaderThe reader to enumerate.
cancellationTokenCancellationTokenThe iteration cancellation token.
nintThe first ordinal to include in the request to the reader for each record.
othersIEnumerable<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
readerDbDataReaderThe reader to enumerate.
arrayPoolArrayPool<object>The array pool to acquire buffers from.
cancellationTokenCancellationTokenThe iteration cancellation token.
nintThe first ordinal to include in the request to the reader for each record.
othersIEnumerable<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
readerDbDataReaderThe reader to enumerate.
nintThe first ordinal to include in the request to the reader for each record.
othersIEnumerable<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
readerDbDataReaderThe reader to enumerate.
arrayPoolArrayPool<object>The array pool to acquire buffers from.
nintThe first ordinal to include in the request to the reader for each record.
othersIEnumerable<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.