The code below is incorrect but the idea here is that I want to grab values from “SqlTable” where the value for “Field” is inside of “Array[]”.
var Result =
from a in SqlTable
where a.Field is in Array[]
select a;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should be able to use the Queryable.Contains Extension Method:
See also: Creating IN Queries With Linq To Sql