Exemplo n.º 1
0
 /// <summary>
 /// Add a combine item
 /// </summary>
 /// <param name="combineItem">Combine item</param>
 /// <returns>Return the newest IQuery object</returns>
 public IQuery Combine(CombineItem combineItem)
 {
     if (combineItem == null)
     {
         return(this);
     }
     combineItem.CombineQuery = QueryManager.HandleParameterQueryBeforeUse(combineItem.CombineQuery, null);
     combineItemCollection.Add(combineItem);
     hasCombine = true;
     return(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Add a join item
 /// </summary>
 /// <param name="joinItem">Join item</param>
 /// <returns>Return the newest IQuery object</returns>
 public IQuery Join(JoinItem joinItem)
 {
     if (joinItem?.JoinQuery == null)
     {
         return(this);
     }
     joinItem.JoinQuery = QueryManager.HandleParameterQueryBeforeUse(joinItem.JoinQuery, null);
     if (joinItem.ExtraQuery != null)
     {
         joinItem.ExtraQuery = QueryManager.HandleParameterQueryBeforeUse(joinItem.ExtraQuery, null);
     }
     joinItemCollection.Add(joinItem);
     hasJoin       = true;
     hasConverter |= joinItem.JoinQuery.HasConverter;
     return(this);
 }