I am using the System.Linq.Dynamic library to power a GUI base query engine however I can't seem to find support for the equivalent of the Sql IN operator. Has anyone used this?
I have searched and found a couple of possible duplicates here however none have been exactly what I am asking (or have been solved).
Clarification:
I am using the dynamic query API to build queries in Linq, e.g:
var customers = dbDataContext
.Clients
.Where("Lastname = @0", "Smith");
Which works fine, the one operator I am struggling with is an equivalent to the Sql IN operator. I would like to do this:
var customers = dbDataContext
.Clients
.Where("ProductIDsPurchased IN (1,6,8,90)");
However I am not sure how to write this using dynamic queries (the above does not work).