Class InterpolatedParameter
A value, created from an expression in an interpolated string, to be passed to an SQL statement as a parameter.
Inheritance
InterpolatedParameter
Assembly: RentADeveloper.DbConnectionPlus.dll
Syntax
public record InterpolatedParameter : IEquatable<InterpolatedParameter>
Constructors
View Source
InterpolatedParameter(InterpolatedParameter)
Declaration
protected InterpolatedParameter(InterpolatedParameter original)
Parameters
View Source
InterpolatedParameter(string?, object?)
A value, created from an expression in an interpolated string, to be passed to an SQL statement as a parameter.
Declaration
public InterpolatedParameter(string? InferredName, object? Value)
Parameters
| Type |
Name |
Description |
| string |
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.
|
| object |
Value |
The value of the parameter.
|
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
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.
Declaration
public string? InferredName { get; init; }
Property Value
View Source
Value
The value of the parameter.
Declaration
public object? Value { get; init; }
Property Value
Methods
View Source
Deconstruct(out string?, out object?)
Declaration
public void Deconstruct(out string? InferredName, out object? Value)
Parameters
View Source
Equals(InterpolatedParameter?)
Declaration
public virtual bool Equals(InterpolatedParameter? other)
Parameters
Returns
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(InterpolatedParameter?, InterpolatedParameter?)
Declaration
public static bool operator ==(InterpolatedParameter? left, InterpolatedParameter? right)
Parameters
Returns
View Source
operator !=(InterpolatedParameter?, InterpolatedParameter?)
Declaration
public static bool operator !=(InterpolatedParameter? left, InterpolatedParameter? right)
Parameters
Returns
Implements