Class InterpolatedTemporaryTable
- Namespace
- RentADeveloper.DbConnectionPlus.SqlStatements
- Assembly
- RentADeveloper.DbConnectionPlus.dll
A sequence of values, created from an expression in an interpolated string, to be passed to an SQL statement as a temporary table.
public record InterpolatedTemporaryTable : IEquatable<InterpolatedTemporaryTable>
- Inheritance
-
InterpolatedTemporaryTable
- Implements
- Inherited Members
Remarks
The annotation on ValuesType is applied to both the parameter and the generated property:
the type is read back off the property when the temporary table is built, and without the annotation on the
property the trimmer would not see that requirement.
Constructors
InterpolatedTemporaryTable(string, IEnumerable, Type)
A sequence of values, created from an expression in an interpolated string, to be passed to an SQL statement as a temporary table.
public InterpolatedTemporaryTable(string Name, IEnumerable Values, Type ValuesType)
Parameters
NamestringThe name for the table.
ValuesIEnumerableThe values with which to populate the table.
ValuesTypeTypeThe type of values in
Values.
Remarks
The annotation on ValuesType is applied to both the parameter and the generated property:
the type is read back off the property when the temporary table is built, and without the annotation on the
property the trimmer would not see that requirement.
Properties
Name
The name for the table.
public string Name { get; init; }
Property Value
Values
The values with which to populate the table.
public IEnumerable Values { get; init; }
Property Value
ValuesType
The type of values in Values.
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors|DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicProperties)]
public Type ValuesType { get; init; }