DbParameters structure

An immutable list of parameters.

public struct DbParameters : IReadOnlyList<ValueTuple<string, object>>

Public Members

name description
static readonly Empty An empty list of parameters.
static Create(…) Creates a list of parameters with one parameter. (3 methods)
static Create<T>(…) Creates a list of parameters from a sequence of tuples. (2 methods)
static FromDto(…) Creates a list of parameters from the properties of a DTO.
Count { get; } The number of parameters.
Item { get; } The parameter at the specified index.
Add(…) Adds a parameter. (4 methods)
Add<T>(…) Adds parameters from a sequence of tuples. (2 methods)
AddDto(…) Adds parameters from the properties of a DTO.
GetEnumerator() Used to enumerate the parameters.
ToDictionary() Creates a dictionary of parameters.

See Also