Using Simple.Data how can I pass multiple values to a query?
Example generated SQL:
SELECT a,b,c
FROM GreatTable
WHERE x in (1,2,3)
Join support would be nice, too.
Does Simple.Data allow this sort of thing?
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.
If you have no gaps in your values e.g. 1,2,3,4 then use:-
this produces a
where x BETWEEN 1 AND 4Otherwise if you have gaps in your range, e.g. 1,2,4,6 then use an integer array:-
this produces a
where x IN (1,2,4,6)