title: No mapping exists from object type System.Int32[] to a known managed provider native type
body: <p>I am getting above error in the following code. Here <code>listid</code> is a list of <code>integers</code>. </p>
  
  <pre><code>SqlConnection cn = new SqlConnection(str1);
  SqlCommand cmd = new SqlCommand("select * from status where uid in {@values}", cn);
  cn.Open();
  cmd.Parameters.AddWithValue("@values",listid.ToArray())
  SqlDataReader dr = cmd.ExecuteReader();
  while (dr.Read())
  {
  //code here
  }
  </code></pre>