title: Using MultipleActiveResultSets=True and ToList() still throws There is already an open DataReader associated with this Command
body: <p>I have an issue when I call <code>db.SaveChanges()</code> method. Even if in the connectionString, I have <code>MultipleActiveResultSets=True</code> and I'm using <code>ToList()</code> method when I'm reading from database, when I call <code>db.SaveChanges()</code>, I'm getting the error from the title of the question.</p>
  
  <p>Here is my connection string:</p>
  
  <pre><code>&lt;connectionStrings&gt;&lt;add name="DBEntities" connectionString="metadata=res://*/DBEntities.csdl|res://*/DBEntities.ssdl|res://*/DBEntities.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=.\ServerName;initial catalog=DatabaseName;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;&lt;/connectionStrings&gt;
  </code></pre>
  
  <p>Here is my c# code:</p>
  
  <pre><code>    db.SaveChanges();
      int errorTrans = (from el in this.curentHandbackFile.Root.Element("data").Elements("Transaction") where el.Attribute("rrc").Value.Contains("_NOK_") select el).Count();
                      IEnumerable&lt;XAttribute&gt; integratedTrans = from el in this.curentHandbackFile.Root.Element("data").Elements("Transaction").Attributes("rrc") where el.Value.Contains("_OK_") select el;
                      int warningTransactionsCount = integratedTrans.Where(trans =&gt; trans.Value != ReturnCodes.RecordCodes.TransactionImported.Key).ToList().Count;
                      int successTransactionsCount = integratedTrans.Where(trans =&gt; trans.Value == ReturnCodes.RecordCodes.TransactionImported.Key).ToList().Count;
  
  _import.Successes = successTransactionsCount;
  _import.Errors = errorTrans;
  _import.Warnings = warningTransactionsCount;
  
  db.SaveChanges();
  </code></pre>
  
  <p>when I call the second time  <code>db.SaveChanges()</code>, I'm getting the error. Any idea why?</p>
  
  <p>PS: I'm using .NET 3.5</p>