public EfRepository() { context = new SeminarManagerContext(); context.Database.Migrate(); person_repository = new EfPersonRepository(context); seminar_repository = new EfSeminarRepository(context); attendee_repository = new EfAttendeeRepository(context); if (person_repository.All().Count == 0) { person_repository.Save(new Person() { Firstname = "Alexander", Lastname = "Stuckenholz", EMail = "*****@*****.**", IsAdmin = true, Password = "******" }); } }
public EfSeminarRepository(SeminarManagerContext context) { this.context = context; }
public EfAttendeeRepository(SeminarManagerContext context) { this.context = context; }