Method AddParams
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
AddParams<T>(T)
Adds the public properties and fields of values
as parameters, each under its own name.
public DbQueryCall AddParams<T>(T values) where T : notnull
Parameters
valuesTThe object to read the values from.
Returns
- DbQueryCall
A new query holding the values; this one is not changed.
Type Parameters
TThe type of the values.
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.