Class InterpolatedParameter
- Namespace
- RentADeveloper.DbConnectionPlus.SqlStatements
- Assembly
- RentADeveloper.DbConnectionPlus.dll
A value, created from an expression in an interpolated string, to be passed to an SQL statement as a parameter.
public record InterpolatedParameter : IEquatable<InterpolatedParameter>
- Inheritance
-
InterpolatedParameter
- Implements
- Inherited Members
Constructors
InterpolatedParameter(string?, object?)
A value, created from an expression in an interpolated string, to be passed to an SQL statement as a parameter.
public InterpolatedParameter(string? InferredName, object? Value)
Parameters
InferredNamestringThe name for the parameter inferred from the expression from which the parameter value was obtained. This is null if no name could be inferred.
ValueobjectThe value of the parameter.
Properties
InferredName
The name for the parameter inferred from the expression from which the parameter value was obtained. This is null if no name could be inferred.
public string? InferredName { get; init; }
Property Value
Value
The value of the parameter.
public object? Value { get; init; }