Table of Contents

Method UsePool

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

UsePool(ArrayPool<T>, bool)

Takes the arrays that hold the rows from pool, in every query made from this definition (see UsePool(ArrayPool<T>, bool)).

public MappedDbQuery<TParams, T> UsePool(ArrayPool<T> pool, bool clearOnReturn)

Parameters

pool ArrayPool<T>

The pool the arrays come from and go back to.

clearOnReturn bool

Whether the rows are cleared when the arrays go back.

Returns

MappedDbQuery<TParams, T>

A definition that uses the pool.

Exceptions

ArgumentNullException

pool is null.