Method ToList
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
ToList()
Reads every mapped row into a new List<T>.
public List<T> ToList()
Returns
- List<T>
A list of all the rows, in the order the database returned them. The list 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>)