title: Passing dynamically created SQL Parameters into dapper as an anonymous type
body: <p>Sending dynamically created SQL Parameters into dapper.</p>
  
  <p><strong>I usually do the following when sending multiple params to dapper:</strong></p>
  
  <pre><code>return connection.Query&lt;Customer&gt;(sql.ToString(), 
      new
      {
          Status = status,
          ZipCodes = zipCodes,
          Types = type
      }).ToList();
  </code></pre>
  
  <p>However I need to figure out a way to dynamically generate these parameters based on a list of key value pairs that I will have.</p>
  
  <p>I want to be able to loop through a list and create the params to pass into dapper dynamically.</p>