public void Execute() { var migrator = new Migrator( ConfigurationManager.AppSettings["Database.ConnectionString"]); migrator.Migrate(runner => runner.MigrateUp()); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); Aplicacao.Boot(Server.MapPath("bin")); var migrator = new Migrator( ConfigurationManager.AppSettings["Database.ConnectionString"]); migrator.Migrate(runner => runner.MigrateUp()); }