title: Ef 6 RemoveRange in Linq
body: <pre><code>IQueryable&lt;PortServicesTariffDetail&gt; detalis = _context.PortServicesTariffDetails
                                     .Where(w =&gt; w.PortServicesTariffId == TariffId &amp;&amp;
                                            w.PortServicesTariffDetailId == DetailId);
  if (detalis.Count() &gt; 0)
  {
   var mydetial = detalis.GroupBy(g =&gt; new { g.StartRate,g.EndRate }).AsQueryable();
   _context.PortServicesTariffDetails.RemoveRange(mydetial.AsQueryable());
   _context.SaveChanges();
  }
  </code></pre>
  
  <p>Depends on the start and end rate remove range, I have raise some issue like anonymous type. so what can I do???</p>
  
  <blockquote>
    <p>Argument 1: cannot convert from  'System.Linq.IQueryable>' to 'System.Collections.Generic.IEnumerable'</p>
  </blockquote>