automatic migrations

This commit is contained in:
Michael 2017-03-21 09:12:41 -04:00
parent 8e09e0e820
commit d2cf4c4d45

View file

@ -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);