title: Delete child objects in Entity Framework
body: <p>I'm using EF and when I do this:</p>
  
  <pre><code>            foreach (var reg in detail.Regs)
              {
                  this.db.Regs.DeleteObject(reg);
              }
  </code></pre>
  
  <p>I get this:</p>
  
  <pre><code>Collection was modified; enumeration operation may not execute.
  </code></pre>
  
  <p>What I'm I doing wrong here???</p>