diff options
| author | Michael <[email protected]> | 2017-03-21 09:12:41 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-21 09:12:41 -0400 |
| commit | d2cf4c4d45ea7d96172130b5ae84487e977f5224 (patch) | |
| tree | 421013e0bad3f88ddfaea78238f4920f6c2c6634 /Project-Unite | |
| parent | 8e09e0e8209cf515e4bb2de1bc5a9394440fe8f9 (diff) | |
| download | project-unite-d2cf4c4d45ea7d96172130b5ae84487e977f5224.tar.gz project-unite-d2cf4c4d45ea7d96172130b5ae84487e977f5224.tar.bz2 project-unite-d2cf4c4d45ea7d96172130b5ae84487e977f5224.zip | |
automatic migrations
Diffstat (limited to 'Project-Unite')
| -rw-r--r-- | Project-Unite/Global.asax.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Project-Unite/Global.asax.cs b/Project-Unite/Global.asax.cs index 198560c..89b14c2 100644 --- a/Project-Unite/Global.asax.cs +++ b/Project-Unite/Global.asax.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Data.Entity.Migrations; using System.IO; using System.Linq; using System.Web; @@ -15,6 +16,9 @@ namespace Project_Unite { protected void Application_Start() { + var configuration = new Migrations.Configuration(); + var migrator = new DbMigrator(configuration); + migrator.Update(); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); |
