title: Entity Framework - SqlQuery with List<> of parameters
body: <p>I am trying to query the db with an IN clause using EF:</p>
  
  <pre><code>List&lt;int&gt; ids = new List&lt;int&gt; {1,2,3,4....20};
  string sql = GetSql(ids);
  //sql is "SELECT * FROM Student WHERE Id in (@p0, @p1, @p2 ... @p19)"
  var res = db.Set&lt;Student&gt;().SqlQuery(sql, ids);
  </code></pre>
  
  <p>But I get the following exception : </p>
  
  <p><strong>No mapping exists from object type System.Collections.Generic.List`1[[System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] to a known managed provider native type.</strong></p>