title: Entity Framework in Parallel, how to update database?
body: <p>I have the following code:</p>
  
  <pre><code>Parallel.ForEach(recipients, pOptions, (item, state) =&gt;
  {
       using (Entities ent = new Entities())
       {
           Campaign camp = ent.Campaigns.Where(xx =&gt; xx.CampaignID == campaignID).FirstOrDefault();
           camp.Sent = Camp.Sent + 1; 
           ent.SaveChanges(); 
       }
  }
  </code></pre>
  
  <p>The problem is that the save changes are not persisted with the DB. </p>
  
  <p>EDIT: Neither is the value persisted among other threads. </p>
  
  <p>What am I doing wrong?</p>