Table of Contents

Struct PendingCall<TKind>

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

The 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 PendingCall<TKind>

Type Parameters

TKind

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

Inherited Members

Methods

AddParam(string, string?)

Adds an input parameter with a string value.

AddParam<TValue>(string, TValue)

Adds an input parameter named as you write it.

AddParam<TValue>(TValue, string?)

Adds an input parameter named for the argument: AddParam(authorId) adds authorId, AddParam(filter.AuthorId) adds AuthorId.

AddParams<TValues>(TValues)

Adds the public properties and fields of values as parameters, each under its own name.

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.