protected override SqlBuilder OrderBy(NewExpression expression, SqlBuilder sqlBuilder) { foreach (Expression item in expression.Arguments) { SqlProvider.OrderBy(item, sqlBuilder); } return(sqlBuilder); }
public SqlQueryable <T> OrderBy(Expression <Func <T, object> > expression) { if (expression == null) { throw new ArgumentNullException("expression", "Value cannot be null"); } this._sqlBuilder.SqlOrderStr += " order by "; SqlProvider.OrderBy(expression.Body, this._sqlBuilder); return(this); }
protected override SqlBuilder OrderBy(ParameterExpression expression, SqlBuilder sqlBuilder) { SqlProvider.OrderBy(expression, sqlBuilder); return(sqlBuilder); }
protected override SqlBuilder OrderBy(UnaryExpression expression, SqlBuilder sqlBuilder) { SqlProvider.OrderBy(expression.Operand, sqlBuilder); return(sqlBuilder); }