Details
-
Improvement
-
Resolution: Duplicate
-
Minor - P4
-
None
-
2.3
-
None
Description
Hi guys,
It would be very useful to support case insensitive search using $in clause in Linq expressions. For example it might be done in this way:
var goodValues = new string[] { ... } |
var query = collection.AsQueryable<T>() |
.Where(i => goodValues.Contains(i.SomeField.ToLower()));
|
Right now it's only possible to specify general values in the array and is not possible to specify regex values for case insensitive search. General equal clause suports it via ToLower() etc methods, but the driver throw an exception if there is a call of .ToLower() method inside the array.Contains() method in .Where() expression.
Thanks,
Mikhail
Attachments
Issue Links
- duplicates
-
CSHARP-1950 Allow string or regular expressions in values for $in with string
-
- Closed
-