Beispiel #1
0
 public QueryCriteria Concat(QueryCriteria queryCriteria)
 {
     if (queryCriteria == null)
     {
         return(this);
     }
     Dictinct = queryCriteria.Dictinct;
     SelectCriteria.AddRange(queryCriteria.SelectCriteria);
     JoinCriteria.AddRange(queryCriteria.JoinCriteria);
     WhereCriteria.AddRange(queryCriteria.WhereCriteria);
     InternalWhere.AddRange(queryCriteria.InternalWhere);
     OrderCriteria.AddRange(queryCriteria.OrderCriteria);
     return(this);
 }
 public QueryParams Join(QueryParams queryParams)
 {
     if (queryParams == null)
     {
         return(this);
     }
     Dictinct = queryParams.Dictinct;
     TakeRows = queryParams.TakeRows;
     SkipRows = queryParams.SkipRows;
     InternalWhere.AddRange(queryParams.InternalWhere);
     WhereCriteria.AddRange(queryParams.WhereCriteria);
     JoinCriteria.AddRange(queryParams.JoinCriteria);
     OrderCriteria.AddRange(queryParams.OrderCriteria);
     return(this);
 }
Beispiel #3
0
 public QueryCriteria Join(QueryParams queryParams)
 {
     if (queryParams == null)
     {
         return(this);
     }
     Dictinct = queryParams.Dictinct;
     TakeRows = queryParams.TakeRows;
     SkipRows = queryParams.SkipRows;
     WhereCriteria.AddRange(queryParams.WhereCriteria);
     InternalWhere.AddRange(queryParams.InternalWhere);
     JoinCriteria.AddRange(queryParams.JoinCriteria);
     if (queryParams.OrderCriteria.Count > 0)
     {
         OrderCriteria = queryParams.OrderCriteria;             // overwrite default view ordering
     }
     return(this);
 }
Beispiel #4
0
        public FluentQuery Where(params Tuple <string, object, FilterTerm.Operator>[] criteria)
        {
            WhereCriteria.AddRange(criteria);

            return(this);
        }