I want to do something like the below where ls is a pair (id and value to match blah). Maybe if i could get the index of the list match I can just use the list normally and grab the id in code
select @id from table1 where blah in @ls
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.
Dapper is a very thin veneer over SQL. The only thing it adds as a syntax change is
INexpansion from:to
However, I don’t think your query can be written like that. The first step, then, is to write your query in regular SQL. If this was SQL-Server, I would be thinking:
for example:
But to repeat: the first step is to write it in SQL for your RDBMS. Once you have that working, it should be a breeze to get dapper to work with it.