Is there a pattern using Linq to dynamically create a filter?
I have the need to create custom filtering on a list, in the past I would just dynamically create the S
something like this?
var myList = new List { "a","b","c" }; var items = from item in db.Items where myList.Contains(item.Name) select item;
that would create a sql statement like
SELECT * FROM Items [t0] where Name IN ('a','b','c')