title: LINQ to Entities DeleteAllOnSubmit throws Unknown Method
body: <p>I'm re-writing an app that used to use LINQ to SQL DeleteAllOnSubmit and am now using LINQ to Entities in an MVC5 application.  MSDN showed the way to structure my L2E code.  However, I receive Unknown Method for the following snippet:</p>
  
  <pre><code>IEnumerable&lt;QuoteItem&gt; quoteItemsToDelete = (from qi in QuoteItem
  where qi.QuoteID = q.QuoteID
  select qi).ToList();
  QuoteItem.DeleteAllOnSubmit(quoteItemsToDelete);
  SubmitChanges();
  </code></pre>
  
  <p>The L2S snippet I'm trying to replace is as follows:</p>
  
  <pre><code>    HttpContext.Current.GetDataContext().QuoteItems.
      DeleteAllOnSubmit&lt;QuoteItem&gt;(q.QuoteItems);
  </code></pre>
  
  <p>Based on comments received, I modified the code as follows:</p>
  
  <pre><code>using (var ctx = new FreightEntities())
          {
              var quoteitemtoDelete = ctx.QuoteItems.Remove();
              ctx.SaveChanges();
          }
  </code></pre>
  
  <p>However, this causes <code>Unknown Method Remove() of System.Data.Entity.DbSet</code></p>
  
  <p>How should I modify my L2E code to accomplish the same purpose as the L2S syntax?</p>