Ready to deploy

This commit is contained in:
2016-09-19 12:01:08 -04:00
parent d242fea781
commit 3a4fd9f2f2
5 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ namespace InventoryTraker.Web
{
public static void Initialize()
{
Database.SetInitializer(new DropCreateDatabaseAlways<AppDbContext>());
Database.SetInitializer(new CreateDatabaseIfNotExists<AppDbContext>());
}
}
}
+2 -2
View File
@@ -52,9 +52,9 @@ namespace InventoryTraker.Web
context.SaveChanges();
AddInventory(context);
//AddInventory(context);
context.SaveChanges();
//context.SaveChanges();
}
}
}