Beispiel #1
0
 public Queryable <T> GroupBy(Expression <Func <T, object> > field, LogicalBinaryExpression having)
 {
     Groups.Add(SqlExpression.Field(field));
     if (having != null)
     {
         _having = SqlExpression.AndAlso(_having, having);
     }
     return(this);
 }
Beispiel #2
0
        public Queryable <T> GroupBy(SqlExpression field, LogicalBinaryExpression having)
        {
            if (field == null)
            {
                throw new ArgumentNullException("field");
            }

            Groups.Add(field);
            if (having != null)
            {
                _having = SqlExpression.AndAlso(_having, having);
            }
            return(this);
        }
Beispiel #3
0
        public Queryable <T> Where(LogicalBinaryExpression logical)
        {
            if (logical == null)
            {
                throw new ArgumentNullException("condition");
            }

            if (_where == null)
            {
                _where = logical;
            }
            else
            {
                _where = SqlExpression.AndAlso(_where, logical);
            }
            return(this);
        }