Method LoadFromReaderAsync
- Namespace
- YndigoBlue.Velocity.Utils
- Assembly
- YndigoBlue.Velocity.dll
LoadFromReaderAsync(DataTable, DbDataReader, CancellationToken)
Asynchronous counterpart to LoadFromReader(DataTable, DbDataReader). Awaits each row from the reader while reading the individual field values synchronously from the buffered current row.
public static Task LoadFromReaderAsync(this DataTable dataTable, DbDataReader reader, CancellationToken cancellationToken = default)
Parameters
dataTableDataTableThe DataTable to load data into.
readerDbDataReaderThe DbDataReader containing the data to load.
cancellationTokenCancellationTokenToken used to cancel the read.