Method ToArray
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
ToArray()
Reads every mapped row into a new array.
public T[] ToArray()
Returns
- T[]
An array of all the rows, in the order the database returned them. The array is empty if there are no rows.
Remarks
All rows are buffered in memory before the call returns. Use Read(Action<IEnumerable<T>>) to process very large results as a stream.
- See Also
-
ToArray<T>(IMappedQuery<T>)