Esempio n. 1
0
 private void AddSampleData()
 {
     Database.EnsureDeleted();
     Database.EnsureCreated();
     Students.AddRange(StudentsSampleData());
     Teachers.Add(new Teacher("Малика", "Абрахманова", DateTime.Parse("05.05.1988"), "*****@*****.**", "Qwertyu123456++", "malika",
                              User.GetHashString("asdfg"))
     {
         MyProblems = AddProblem()
     });
     Administrators.Add(new Administrator("Бахытжан", "Ассилбеков", DateTime.Parse("02.12.1982"), "*****@*****.**", "assilbekov",
                                          User.GetHashString("kaznitu")));
     Problems.AddRange(AddProblem());
     SaveChanges();
 }