mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 11:21:47 -05:00
automatic migrations
This commit is contained in:
parent
8e09e0e820
commit
d2cf4c4d45
1 changed files with 4 additions and 0 deletions
|
@ -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 @@ public class MvcApplication : System.Web.HttpApplication
|
|||
{
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue