示例#1
0
 private static void ApplyMigrations(BankDbContext context)
 {
     context.Database.Migrate();
     context.SaveChanges();
 }
示例#2
0
 private static void AddBank(BankDbContext dbContext)
 {
     dbContext.Add(new Model.Bank());
     dbContext.SaveChanges();
 }