Esempio n. 1
0
 private static void SeedData(LookUpDbContext locationContext)
 {
     System.Console.WriteLine("Starting Seeding LookUp Db");
     if (locationContext.Database.GetPendingMigrations().Any())
     {
         System.Console.WriteLine("LookUp Db has migrated");
         locationContext.Database.Migrate();
     }
 }
Esempio n. 2
0
 public LookUpsService(LookUpDbContext lookUpDbContext)
 {
     this.lookUpDbContext = lookUpDbContext;
 }
 public CascadingLookUpsService(LookUpDbContext lookUpDbContext)
 {
     this.lookUpDbContext = lookUpDbContext;
 }