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<T> UsePool(ArrayPool<T> pool, bool clearOnReturn)
Parameters
poolArrayPool<T>The pool the arrays come from and go back to.
clearOnReturnboolWhether the rows are cleared when the arrays go back.
Returns
- MappedDbQuery<T>
A definition that uses the pool.
Exceptions
- ArgumentNullException
poolis null.