Mongodb, linq driver. How to construct Contains with variable or statements
- by Syska
I'm using the LINQ Driver for C#, works great.
Sorting a lot of properties but heres a problem I can't solve, its probebly simple.
var identifierList = new []{"10", "20", "30"};
var newList = list.Where(x => identifierList.Contains(x.Identifier));
This is NOT supported ...
So I could do something like:
var newList = list.Where(x =>…