In theory, you would use:
var productList = from product in context.Products
where myfields.contains(product.category)
select product
However, you need to test this - it seems that I remember that there was an error in the Linq2Sql optimizer when I tried to use the List <> values and the arrays used in this way (perhaps this only happened if you tried to execute them as IQueryable)
David source
share