Table of Contents

Method ToImmutableArray

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

ToImmutableArray()

Reads every mapped row into a new ImmutableArray<T>.

public ImmutableArray<T> ToImmutableArray()

Returns

ImmutableArray<T>

An immutable array of all the rows, in the order the database returned them.

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