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.
15 lines
491 B
15 lines
491 B
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; }
|
|
} |