title: Delete a List<T> using Dapper
body: <p>Using Dapper or <a href="https://github.com/ericdc1/Dapper.SimpleCRUD" rel="noreferrer">Dapper.SimpleCRUD</a>, How might I delete a List from a table.  Something like:</p>
  
  <pre><code>    public static void DeleteList&lt;T&gt;(List&lt;T&gt; listToDelete)
      {
          using (var connection = OpenConnection())
          {
              connection.Delete&lt;T&gt;(listToDelete);
          }
      }
  </code></pre>
  
  <p>But when I try that, I get...</p>
  
  <blockquote>
    <p>The member of type DataModel.MyTable cannot be used as a parameter value</p>
  </blockquote>
  
  <p>Is the only option to pass in a WHERE clause?</p>