Struct SqlIndexBuilderColumns<T>
Represents a collection of indexed SQL expression builders.
public readonly struct SqlIndexBuilderColumns<T> where T : class, ISqlColumnBuilder
Type Parameters
T
SQL column builder type.
- Inherited Members
Constructors
SqlIndexBuilderColumns(ReadOnlyArray<SqlOrderByNode>)
Creates a new SqlIndexBuilderColumns<T> instance.
public SqlIndexBuilderColumns(ReadOnlyArray<SqlOrderByNode> expressions)
Parameters
expressions
ReadOnlyArray<SqlOrderByNode>Underlying collection of expressions.
Fields
Empty
Represents an empty collection.
public static readonly SqlIndexBuilderColumns<T> Empty
Field Value
Properties
Expressions
Underlying collection of expressions.
public ReadOnlyArray<SqlOrderByNode> Expressions { get; }
Property Value
Methods
GetEnumerator()
Creates a new SqlIndexBuilderColumns<T>.Enumerator instance for this collection.
[Pure]
public SqlIndexBuilderColumns<T>.Enumerator GetEnumerator()
Returns
- SqlIndexBuilderColumns<T>.Enumerator
New SqlIndexBuilderColumns<T>.Enumerator instance.
IsExpression(int)
Checks whether or not an expression at the specified 0-based position is not a single column.
[Pure]
public bool IsExpression(int index)
Parameters
index
int0-based position.
Returns
- bool
true when expression at the specified position is not a single column, otherwise false.
Exceptions
- IndexOutOfRangeException
When
index
is out of bounds.
TryGet(int)
Attempts to return an SQL column builder instance at the specified 0-based position.
[Pure]
public T? TryGet(int index)
Parameters
index
int0-based position.
Returns
- T
SQL column builder instance or null when an expression at the specified position is not a single column.
Exceptions
- IndexOutOfRangeException
When
index
is out of bounds.