protected override SqlPack OrderBy(NewExpression expression, SqlPack sqlPack) { foreach (Expression item in expression.Arguments) { Expression2SqlProvider.OrderBy(item, sqlPack); } return(sqlPack); }
public ExpressionToSql <T> OrderBy(Expression <Func <T, object> > expression) { if (expression == null) { throw new ArgumentNullException("expression", "Value cannot be null"); } this._sqlBuilder += "\norder by "; Expression2SqlProvider.OrderBy(expression.Body, this._sqlBuilder); return(this); }
protected override SqlBuilder OrderBy(ParameterExpression expression, SqlBuilder sqlBuilder) { Expression2SqlProvider.OrderBy(expression, sqlBuilder); return(sqlBuilder); }
public ExpressionToSql <T> OrderBy(Expression <Func <T, object> > expression) { this._sqlBuilder += "\norder by "; Expression2SqlProvider.OrderBy(expression.Body, this._sqlBuilder); return(this); }
public Expression2SqlCore <T> OrderBy(Expression <Func <T, object> > expression) { this._sqlPack += "\norder by "; Expression2SqlProvider.OrderBy(expression.Body, this._sqlPack); return(this); }
protected override SqlBuilder OrderBy(UnaryExpression expression, SqlBuilder sqlBuilder) { Expression2SqlProvider.OrderBy(expression.Operand, sqlBuilder); return(sqlBuilder); }
protected override SqlPack OrderBy(UnaryExpression expression, SqlPack sqlPack) { Expression2SqlProvider.OrderBy(expression.Operand, sqlPack); return(sqlPack); }