Example #1
0
 public static WhereBuilder<TModel> ContainsAny<T>(Expression<Func<TModel, IList<T>>> field, IEnumerable<T> array)
 {
   var column = NodeVisitor.EvaluateExpressionToColumn(field.Body);
   return new WhereBuilder<TModel>(ExpressionBuilders.ContainsAny(column.TypedExpression, array));
 }
Example #2
0
 public static WhereBuilder<TModel> ContainsAny<T>(Expression<Func<TModel, IList<T>>> field, params T[] values)
 {
   var column = NodeVisitor.EvaluateExpressionToColumn(field.Body);
   return new WhereBuilder<TModel>(ExpressionBuilders.ContainsAny(column.TypedExpression, values));
 }