Table of Contents

Class ScalarDbQuery<TParams, T>

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

A ScalarDbQuery<T> whose values are one typed struct, so the compiler checks them.

public sealed class ScalarDbQuery<TParams, T> where TParams : struct, IEquatable<TParams>

Type Parameters

TParams

The type of the values.

T

The type of the value the query reads.

Inheritance
ScalarDbQuery<TParams, T>
Inherited Members

Methods

AddParams(TParams)

Adds the values before the source is known.

Using(DbConnection)

Binds the query to a connection. The connection is opened late and closed again only if this call opened it; it is never disposed.

Using(DbTransaction)

Binds the query to a transaction, which runs it on the transaction's connection.

Using<TConnection>(IDbConnectionFactory<TConnection>)

Binds the query to a factory: each run creates a connection, opens it, and disposes it when finished.

Using<TConnection>(IDbConnectionPool<TConnection>)

Binds the query to a pool: each run takes a connection, opens it if needed, and gives it back.