示例#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);
 }