Пример #1
0
        public INSql Having(INSql subquery, Cond condition = Cond.AND)
        {
            var cond = new Condition()
            {
                Operator = Op.Raw,
                Raw      = String.Format("( {0} )", subquery.ToSql())
            };

            this.ListConditionHavings.Add(cond);

            return(this);
        }
Пример #2
0
 public INSql JoinHaving(INSql query)
 {
     this.ListConditionHavings.AddRange(query.GetHavings());
     return(this);
 }
Пример #3
0
 public INSql JoinWhere(INSql query)
 {
     this.ListConditionWheres.AddRange(query.GetWheres());
     return(this);
 }