If the query expression uses the Contains method of the IEnumerable , then the parser will turn it into an IN expression using the values ββin IEnumerable .
List<string> foo = new List<string>() { "a", "b", "c" }; var query = dataContext.View.Where(v => foo.Contains(v.Status));
Adam Robinson Jun 11 '10 at 15:48
source share