Beispiel #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());
        }
Beispiel #2
0
 public virtual SqlString ToGroupSqlString(ICriteria criteria, ICriteriaQuery criteriaQuery, IDictionary <string, IFilter> enabledFilters)
 {
     return(projection.ToGroupSqlString(criteria, criteriaQuery, enabledFilters));
 }
Beispiel #3
0
 public override SqlString ToGroupSqlString(ICriteria criteria, ICriteriaQuery criteriaQuery)
 {
     return(_projection.ToGroupSqlString(criteria, criteriaQuery));
 }
Beispiel #4
0
 public virtual SqlString ToGroupSqlString(ICriteria criteria, ICriteriaQuery criteriaQuery)
 {
     return(projection.ToGroupSqlString(criteria, criteriaQuery));
 }