title: Dapper query with list of parameters
body: <p>I am trying to run a query with Dapper with a known set of parameters, but with a list of values for those parameters.  A simple example of what I am trying to do would be:</p>
  
  <pre><code>DateTime endDate = DateTime.Now;
  DateTime startDate = endDate.AddHours(-24);
  
  string query = "select COUNT(*) from Test where Status = @Status AND DateCreated &lt;= @Hour;";
  var stuff = con.Query(query, (startDate).ByHourTo(endDate).Select(hour =&gt; new
  {
       Status = 1,
       Hour = hour,
  }));
  </code></pre>
  
  <p>Dapper throws an exception with 'Parameter '@Status' must be defined'. I know Dapper can process lists of parameters when doing bulk inserts and updates, but can it not do this for selects?</p>