private static void InitializeParticipantsOfTraining(SportsClubDbContext db) { if (db.ParticipantsOfTraining.Count() != 0) { return; } db.ParticipantsOfTraining.AddRange(Participants); db.SaveChanges(); }
private static void InitializeTimetableEntries(SportsClubDbContext db) { if (db.TimetableEntries.Count() != 0) { return; } db.TimetableEntries.AddRange(TimetableEntries); db.SaveChanges(); }
private static void InitializeLocations(SportsClubDbContext db) { if (db.Locations.Count() != 0) { return; } db.Locations.AddRange(Locations); db.SaveChanges(); }
private static void InitializeTrainings(SportsClubDbContext db) { if (db.Trainings.Count() != 0) { return; } db.Trainings.AddRange(Trainings); db.SaveChanges(); }
private static void InitializeCoaches(SportsClubDbContext db) { if (db.Coaches.Count() != 0) { return; } db.Coaches.AddRange(Coaches); db.SaveChanges(); }