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