예제 #1
0
 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);
        }
예제 #3
0
 protected override SqlBuilder GroupBy(UnaryExpression expression, SqlBuilder sqlBuilder)
 {
     ExpressionToSqlProvider.GroupBy(expression.Operand, sqlBuilder);
     return(sqlBuilder);
 }
예제 #4
0
 protected override SqlBuilder GroupBy(ParameterExpression expression, SqlBuilder sqlBuilder)
 {
     ExpressionToSqlProvider.GroupBy(expression, sqlBuilder);
     return(sqlBuilder);
 }