예제 #1
0
 protected override void Seed(CodeFirst1108.DataContext.StuDBContext context)
 {
     context.Database.ExecuteSqlCommand("delete Students");
     context.Database.ExecuteSqlCommand("delete DepartMents");
     DepartMentSeed.Seed(context);
     StudentSeed.Seed(context);
 }
예제 #2
0
 protected override void Seed(CodeFirst1108.DataContext.StuDBContext context)
 {
     // DepartmentSeed.Seed(context);
     StudentSeed.Seed(context);
 }