/// <summary>
        /// Adds criteria to the query (the 'where' clause).
        /// </summary>
        /// <param name="query"></param>
        /// <param name="args"></param>
        public virtual void AddCriteria(HqlProjectionQuery query, QueryBuilderArgs args)
        {
            QueryBuilderHelpers.AddCriteriaToQuery(HqlConstants.WorklistItemQualifier, args.Criteria, query, RemapHqlExpression);

            // modify the query to workaround some NHibernate bugs
            QueryBuilderHelpers.NHibernateBugWorkaround(query.Froms[0], query.Conditions, a => a);
        }
Exemple #2
0
 /// <summary>
 /// Adds worklist filters to the query (affects the 'from' clause).
 /// </summary>
 /// <param name="query"></param>
 /// <param name="args"></param>
 public virtual void AddFilters(HqlProjectionQuery query, WorklistQueryArgs args)
 {
     QueryBuilderHelpers.AddCriteriaToQuery(HqlConstants.WorklistItemQualifier, args.FilterCriteria, query, RemapHqlExpression);
 }
 /// <summary>
 /// Adds ordering to the query (the 'rder by' clause).
 /// </summary>
 /// <param name="query"></param>
 /// <param name="args"></param>
 public virtual void AddOrdering(HqlProjectionQuery query, QueryBuilderArgs args)
 {
     QueryBuilderHelpers.AddOrderingToQuery(HqlConstants.WorklistItemQualifier, query, args.Criteria, RemapHqlExpression);
 }