protected virtual Expression VisitOrderBy(SqlOrderByExpression orderByExpression) { var newExpression = this.Visit(orderByExpression.Expression); if (newExpression != orderByExpression.Expression) { return(new SqlOrderByExpression(orderByExpression.OrderType, newExpression)); } return(orderByExpression); }
protected override Expression VisitOrderBy(SqlOrderByExpression orderByExpression) { base.VisitOrderBy(orderByExpression); switch (orderByExpression.OrderType) { case OrderType.Ascending: this.Write(" NULLS FIRST"); break; default: this.Write(" NULLS LAST"); break; } return(orderByExpression); }
protected override SqlExpression Visit(SqlOrderByExpression expression) { sql.Append(string.Join(", ", expression.Columns.Select(FormatOrdering))); return(expression); }
protected virtual SqlExpression Visit(SqlOrderByExpression expression) { return(new SqlOrderByExpression(expression.Columns.Select(x => (SqlOrderingExpression)Visit(x)))); }