title: delete Entity objects that reference another objects (foreign key relation tables)
body: <pre><code>public void DeleteGenreList()
  {
      var genreList = entities.Genres.AsEnumerable();
  
      foreach (var oneGenre in genreList)
      {
  
          foreach (var onesong in oneGenre.Songs)
          {
              entities.Songs.DeleteObject(onesong);
          }
  
          entities.Genres.DeleteObject(oneGenre);
      }
  }
  </code></pre>
  
  <p>I can not delete my Genre object that contains song objects because i'm getting collection was modified error, pls help thx!</p>