Table of Contents

Method AsyncReads

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

AsyncReads()

Reads the rows of an async terminal with ReadAsync instead of Read.

public MappedCommand<T> AsyncReads()

Returns

MappedCommand<T>

The same query, reading its rows asynchronously.

Remarks

By default every terminal, async ones included, executes asynchronously and reads the rows with Read. This opts in to ReadAsync (the getters stay synchronous) for this call only. It changes only how the rows are read: an async terminal reads through the later result sets with NextResultAsync either way. It changes nothing on a synchronous terminal. It can be called in any order with Skip, Take and SingleResult.