Esempio n. 1
0
        public static HavingFilterCollection HavingColumnValue(this HavingFilterCollection query, Aggregate aggregate, string leftTableAlias, string leftField, Compare comparison, string rightValue, DbType rightType, string parameterAlias = null, string isNullValue = null)
        {
            var HavingFilter = new ColumnValueHavingFilter()
            {
                Aggregate      = aggregate,
                LeftColumn     = new Column(leftTableAlias, leftField),
                Operator       = comparison,
                RightValue     = new LiteralValue(rightValue, rightType),
                ParameterAlias = parameterAlias,
                IsNullValue    = isNullValue
            };

            query.Add(HavingFilter);
            return(query);
        }
Esempio n. 2
0
 public static HavingFilterCollection Having(this HavingFilterCollection query, string sql)
 {
     query.Add(new SqlHavingFilter(sql));
     return(query);
 }
Esempio n. 3
0
 public static HavingFilterCollection HavingCollection(this HavingFilterCollection query, Combine groupingOperator, HavingFilterCollection collection)
 {
     collection.GroupingOperator = groupingOperator;
     query.Add(collection);
     return(query);
 }