title: Is there something like DbSet<T>.RemoveWhere(Predicate<T>)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/869209/bulk-deleting-in-linq-to-entities">Bulk-deleting in LINQ to Entities</a>  </p>
  </blockquote>
  
  
  
  <p>I need to remove some entities by condition. E.g., remove all order items having quantity less than 1:</p>
  
  <pre><code>var orderId = 10; // any order Id
  context.OrderItems.RemoveWhere(item =&gt; item.OrderId == orderId &amp;&amp; item.Quantity &lt; 1.0);
  </code></pre>
  
  <p>I know, that I can select those items and then remove them one-by-one like this:</p>
  
  <pre><code>var itemsToRemove = context.OrderItems.Where(item =&gt; item.OrderId == orderId &amp;&amp; item.Quantity &lt; 1.0).ToArray();
  
  foreach (var item in itemsToRemove)
    context.OrderItems.Remove(item);
  </code></pre>
  
  <p>But this is very unlikely, because extra work will take place.
  Am I missed something?</p>