Exemple #1
0
 private static void AddCriterion(IQuery query, string selector, StringValues selectorValues)
 {
     if (selectorValues.Count > 1)
     {
         query.Add(Criterion.In(selector, selectorValues));
     }
     else
     {
         query.Add(Criterion.Eq(selector, selectorValues.FirstOrDefault()));
     }
 }