Class MappedDbQuery<TParams, T>
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
A MappedDbQuery<T> whose parameters are one typed struct, so the compiler checks them.
public sealed class MappedDbQuery<TParams, T> where TParams : struct, IEquatable<TParams>
Type Parameters
TParamsThe struct that holds the parameters.
TThe type each row is mapped to.
- Inheritance
-
MappedDbQuery<TParams, T>
- Inherited Members
Methods
- AddParams(TParams)
Adds the parameters before the source is known.
- AsyncReads()
Reads the rows with the asynchronous read of the provider, in every query made from this definition (see AsyncReads()).
- SingleResult()
Reads only the first result set, in every query made from this definition (see SingleResult()).
- 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)).
- Using(DbConnection)
Reads the query on a connection the caller owns.
- Using(DbTransaction)
Reads the query inside a transaction the caller owns.
- Using<TConnection>(IDbConnectionFactory<TConnection>)
Reads the query on a connection made by a factory.
- Using<TConnection>(IDbConnectionPool<TConnection>)
Reads the query on a connection taken from a pool.