Пример #1
0
 public void CascadeDeleteShoots(RegisterKeeperDb db)
 {
     foreach (var teamCompetitor in TeamCompetitors)
     {
         teamCompetitor.CascadeDeleteShoots(db);
     }
 }
Пример #2
0
 public void CascadeDeleteShoots(RegisterKeeperDb db)
 {
     foreach (var registerCard in RegisterCards)
     {
         registerCard.CascadeDeleteShoots(db);
     }
 }
Пример #3
0
 /// <summary>
 /// Can't use cascade delete on database foreign key due to circular dependencies
 /// </summary>
 /// <param name="db"></param>
 internal void CascadeDeleteShoots(RegisterKeeperDb db)
 {
     foreach (var shoot in Shoots.ToList())
     {
         db.Shoots.Remove(shoot);
     }
 }