Table of Contents

Method AddParams

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

AddParams<TValues>(TValues)

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

public PendingCall<ScalarKind<T>> AddParams<TValues>(TValues values) where TValues : notnull

Parameters

values TValues

The object to read the values from.

Returns

PendingCall<ScalarKind<T>>

A new query holding the values; this one is not changed.

Type Parameters

TValues

Remarks

Declare the type with Params<TParams>() to have it checked at compile time. For the lightest call, use a typed Params<TParams>() definition with a readonly record struct.