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/Expressions/RowNumberExpression.cs

15 lines
491 B

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