Table of Contents

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

dataTable DataTable

The DataTable to load data into.

reader DbDataReader

The DbDataReader containing the data to load.

cancellationToken CancellationToken

Token used to cancel the read.

Returns

Task