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

Name string

The name for the table.

Values IEnumerable

The values with which to populate the table.

ValuesType Type

The 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

string

Values

The values with which to populate the table.

public IEnumerable Values { get; init; }

Property Value

IEnumerable

ValuesType

The type of values in Values.

[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors|DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicProperties)]
public Type ValuesType { get; init; }

Property Value

Type