using Connected.Expressions.Collections; using System.Collections.ObjectModel; namespace Connected.Expressions; public sealed class RowNumberExpression : DatabaseExpression { public RowNumberExpression(IEnumerable? orderBy) : base(DatabaseExpressionType.RowCount, typeof(int)) { OrderBy = orderBy is null ? new List().AsReadOnly() : orderBy.ToReadOnly(); } public ReadOnlyCollection OrderBy { get; } }