You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Expressions/Translation/Rewriters/BindResultRewriter.cs

21 lines
749 B

using Connected.Expressions.Expressions;
using System.Collections.ObjectModel;
namespace Connected.Expressions.Translation.Rewriters;
public sealed class BindResultRewriter
{
public BindResultRewriter(IEnumerable<ColumnDeclaration> columns, IEnumerable<OrderExpression> orderings)
{
Columns = columns as ReadOnlyCollection<ColumnDeclaration>;
Columns ??= new List<ColumnDeclaration>(columns).AsReadOnly();
Orderings = orderings as ReadOnlyCollection<OrderExpression>;
Orderings ??= new List<OrderExpression>(orderings).AsReadOnly();
}
public ReadOnlyCollection<ColumnDeclaration>? Columns { get; private set; }
public ReadOnlyCollection<OrderExpression>? Orderings { get; private set; }
}