title: How can I RemoveAll from List.EntitySet
body: <p>I am trying to remove all items from a Linq.EntitySet but whatever I tried just removes the items from the list and not from the EntitySet</p>
  
  <p>I saw in other questions that the problem was that the items are removed from the newly created list and not from the original list which is exactly what happen in my code, but none of the answers solved my problem.</p>
  
  <p>What I've tried so far:</p>
  
  <p>This removes the items on list siskevasiaEidous but the items still exists on BisCurrent.SiskevasiesEidousBis</p>
  
  <pre><code>List&lt;SiskevasiesEidousBis&gt; siskevasiaEidous = 
                          BisCurrent.SiskevasiesEidousBis.Where(
                              p=&gt; p.ArithmosEidous == Convert.ToInt32(BisCurrent.ArithmosEidous3_32.Value.ToString())).ToList();
  </code></pre>
  
  <p>This code shoes me for example that I have 5 items in that list and the 2 will be removed, but when it runs it does nothing to the list.</p>
  
  <pre><code>BisCurrent.SiskevasiesEidousBis.ToList().RemoveAll(a =&gt; a.ArithmosEidous == 4);
  </code></pre>
  
  <p>One quite promising code I found which it actually replace the same list without the items that I want to remove</p>
  
  <pre><code>BisCurrent.SiskevasiesEidousBis = BisCurrent.SiskevasiesEidousBis.Where(a =&gt; a.ArithmosEidous != BisCurrent.ArithmosEidous3_32.Value);
  </code></pre>
  
  <p>It gives me the error :</p>
  
  <blockquote>
    <p>Cannot implicity convert type
    System.Collections.Generic.Ienumerable
    to
    'System.Data.Linq.EntitySetAn
    explicit conversion ecists(are you missing a cast?)</p>
  </blockquote>