Table of Contents

Struct PendingParams<TKind, TParams>

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

The typed values of a scalar query or a write, added before it has a source. It has no terminal: Using gives it a source.

public readonly struct PendingParams<TKind, TParams> where TParams : struct, IEquatable<TParams>

Type Parameters

TKind

What the call does: ScalarKind<T> or NonQueryKind.

TParams

The type of the values.

Inherited Members

Methods

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.