IDBContextExecuteEnumerableAsyncT Method

Relativity API
Asynchronously executes a call to SQL and passes the supplied converter over each of the resulting data records, coalescing that output into an IEnumerableT.

Namespace:  Relativity.API
Assembly:  Relativity.API (in Relativity.API.dll) Version: 17.0.1.1 588f15fd7550dbf54835f3417a0142d4ea37dbb5
Syntax

Task<IEnumerable<T>> ExecuteEnumerableAsync<T>(
	IQuery query,
	Func<IDataRecord, CancellationToken, Task<T>> converter
)

Parameters

query
Type: Relativity.API.ContextIQuery
the IQuery settings to present to the call to the SQL database.
converter
Type: SystemFuncIDataRecord, CancellationToken, TaskT
An asynchronous delegate used to convert data records

Type Parameters

T
The type of IEnumerableT to be returned.

Return Value

Type: TaskIEnumerableT
See Also

Reference