protected DbRowNumberExpression UpdateRowNumber(DbRowNumberExpression rowNumber, IEnumerable <DbOrderExpression> orderBy) { if (orderBy != rowNumber.OrderBy) { return(new DbRowNumberExpression(orderBy)); } return(rowNumber); }
protected virtual bool CompareRowNumber(DbRowNumberExpression a, DbRowNumberExpression b) { return(this.CompareOrderList(a.OrderBy, b.OrderBy)); }
protected override Expression VisitRowNumber(DbRowNumberExpression rowNumber) { throw new NotSupportedException(); }
protected virtual Expression VisitRowNumber(DbRowNumberExpression rowNumber) { return(this.UpdateRowNumber(rowNumber, this.VisitOrderBy(rowNumber.OrderBy))); }