title: Deleting a Collection with NHibernate Using the Criteria API
body: <p>I think I know what the answer to this question is probably going to be, but I thought I'd go ahead and ask it anyway.</p>
  
  <p>It appears that within NHibernate if I do something like this:</p>
  
  <pre><code>IList&lt;Customer&gt; customers = Session.CreateCriteria(typeof(Customer))
                                  .Add(Restrictions.Eq("Name", "Steve")
                                  .List&lt;Customer&gt;();
  </code></pre>
  
  <p>And I want to then delete that list of customers. From what I can tell the only way to do it is like this:</p>
  
  <pre><code>foreach(var customer in customers)
  {
      Session.Delete(customer);
  }
  </code></pre>
  
  <p>But what I'm wondering is if there's any way I can just go:</p>
  
  <pre><code>Session.Delete(customers);
  </code></pre>
  
  <p>And delete the entire collection with a single call?</p>