Class UnpivotColumn
One source column of the UNPIVOT ... IN (...) list. The column name becomes the name-column
value for the rows produced from this column.
public sealed class UnpivotColumn
- Inheritance
-
UnpivotColumn
- Inherited Members
- Extension Methods
Properties
Column
The source column to unpivot (rendered as an identifier).
public string Column { get; }
Property Value
Methods
Create(string)
Creates an unpivot column entry. The string is the raw source column name: the IN (...)
declaration and its projection reference both derive from it and each is emitted as one safely
quoted identifier, independently of the command's QuoteIdentifiers option, so the name
never reaches the SQL text as raw or unquoted text.
public static UnpivotColumn Create(string column)
Parameters
columnstring