title: dapper sql in-clause throws exception
body: <p>This may be a duplicate of <a href="https://stackoverflow.com/questions/8388093/select-from-x-where-id-in-with-dapper-orm">SELECT * FROM X WHERE id IN (...) with Dapper ORM</a></p>
  
  <p>I am trying to achieve :</p>
  
  <pre><code>connection.execute("delete from table where id in @ids", new { ids = new int[]{1,2}});
  </code></pre>
  
  <p>But it's not working. I always get : ERROR: 42883: operator does not exist: integer = integer[].</p>
  
  <p>Even if I do this :</p>
  
  <pre><code>connection.Query&lt;a&gt;("select * from a where a_id in @ids", new { ids = new int[] { 12, 13 } })
  </code></pre>
  
  <p>I get the same exception.
  I am accessing a postgresql database with Npgsql.
  Can you tell me what i am doing wrong ?</p>
  
  <p>Here's what happens at the database for the second statement :</p>
  
  <p>Here's some log for the second statement :</p>
  
  <p>operator does not exist: integer = integer[] at character 33    </p>
  
  <p>No operator matches the given name and argument type(s). You might need to add explicit type casts. </p>
  
  <p>select * from a where a_id in ((array[12,13])::int4[])</p>
  
  <p>And this is for the first one (same as above but the last line is different)</p>
  
  <p>delete from a where a_id in ((array[12,13])::int4[])    </p>