Ready to deploy
This commit is contained in:
@@ -7,7 +7,7 @@ namespace InventoryTraker.Web
|
||||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
Database.SetInitializer(new DropCreateDatabaseAlways<AppDbContext>());
|
||||
Database.SetInitializer(new CreateDatabaseIfNotExists<AppDbContext>());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -52,9 +52,9 @@ namespace InventoryTraker.Web
|
||||
|
||||
context.SaveChanges();
|
||||
|
||||
AddInventory(context);
|
||||
//AddInventory(context);
|
||||
|
||||
context.SaveChanges();
|
||||
//context.SaveChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user