How do you write a linq query to express this:
Select * from Table where column IN (some values);
By some values, I mean ('Value1', 'Value2', 'value3', ...).
Thanks for helping
Assuming
var some_values = new [] { "Value1", "Value2", "value3" };
Then:
data.Where(x => some_values.Contains(x))
Or:
from x in data where some_values.Contains(x) select x;
1.4m articles
1.4m replys
5 comments
57.0k users