Esempio n. 1
0
        public SqlString ToGroupSqlString(ICriteria criteria, ICriteriaQuery criteriaQuery, IDictionary <string, IFilter> enabledFilters)
        {
            SqlStringBuilder buf = new SqlStringBuilder();

            for (int i = 0; i < Length; i++)
            {
                IProjection proj = this[i];
                if (proj.IsGrouped)
                {
                    buf.Add(proj.ToGroupSqlString(criteria, criteriaQuery, enabledFilters))
                    .Add(", ");
                }
            }
            if (buf.Count >= 2)
            {
                buf.RemoveAt(buf.Count - 1);
            }
            return(buf.ToSqlString());
        }
Esempio n. 2
0
 public virtual SqlString ToGroupSqlString(ICriteria criteria, ICriteriaQuery criteriaQuery, IDictionary <string, IFilter> enabledFilters)
 {
     return(projection.ToGroupSqlString(criteria, criteriaQuery, enabledFilters));
 }
Esempio n. 3
0
 public override SqlString ToGroupSqlString(ICriteria criteria, ICriteriaQuery criteriaQuery)
 {
     return(_projection.ToGroupSqlString(criteria, criteriaQuery));
 }
Esempio n. 4
0
 public virtual SqlString ToGroupSqlString(ICriteria criteria, ICriteriaQuery criteriaQuery)
 {
     return(projection.ToGroupSqlString(criteria, criteriaQuery));
 }