Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
2.4.3
Description
Hey chaps
I logged a VERY similar issue some time back (which has been resolved: CSHARP-1543 )
This is specific to using the .Contains() linq extension on (in my case) a generic List, checking if it contains a property of the queried document.
Pseudo example:
var myList = new List<string>() { "bob", "frank" };
|
var results = queryable.Where(doc => myList.Contains(doc.prop) == false).ToList(); //this fails
|
var results2 = queryable.Where(doc => !myList.Contains(doc.prop)).ToList(); //this works
|