Skip to content

EntitySqlHelper.ListAsync<TRow> method

Asynchronously lists the rows returned from executing the query.

public static Task<List<TRow>> ListAsync<TRow>(this SqlQuery query, IDbConnection connection, 
    TRow? loaderRow = default, CancellationToken cancellationToken = default)
    where TRow : class, IRow
parameter description
TRow The type of the row.
query The query.
connection The connection.
loaderRow The loader row.
cancellationToken The cancellation token.

Return Value

A task representing the asynchronous operation. The task result is the list of rows.

See Also