Code like this:
connection.Execute("delete from Table where ID in @ids", new { ids=listOfIds });
fails when listOfIds
is too long. You will get something along those lines:
The incoming request has too many parameters. The server supports a maximum of 2100
(depending on your rdbms)
Ideally, I would like to use a Table Valued Parameter. I am yet to find a decent dapper example. Could someone please point me in the right direction?