Table of Contents

Struct BoundCall<TKind>

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

A scalar query or a write bound to where its connections come from, with the values added so far.

public readonly struct BoundCall<TKind> : IEquatable<BoundCall<TKind>>

Type Parameters

TKind

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

Implements
Inherited Members

Remarks

Made by Using on a ScalarDbQuery<T> or a DbNonQuery. Each AddParam returns a new one and leaves this one unchanged, so a call can be kept and branched. Nothing touches the database until the terminal runs.

Properties

Source

The connection, transaction, pool or factory the query is bound to.

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.

Equals(BoundCall<TKind>)

Indicates whether the current object is equal to another object of the same type.

Equals(object?)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Operators

operator ==(BoundCall<TKind>, BoundCall<TKind>)

Determines whether two calls are the same definition on the same source with the same values added.

operator !=(BoundCall<TKind>, BoundCall<TKind>)

Determines whether two calls differ.