JElster
asked on
LINQ - Help with contains
Hi..
I need to write a linq statement that queries a CUSTOMER object for all the CUSTOMER_ID in a List<string>
myList - contains 100+ CUSTOMER_IDS which are strings
var query = from c in Customers where id in myList ???????
thx in advance
I need to write a linq statement that queries a CUSTOMER object for all the CUSTOMER_ID in a List<string>
myList - contains 100+ CUSTOMER_IDS which are strings
var query = from c in Customers where id in myList ???????
thx in advance
var query = from c in Customers where myList.Contains(id.ToStrin g())
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.