예제 #1
0
        public void Execute()
        {
            var migrator = new Migrator(
                ConfigurationManager.AppSettings["Database.ConnectionString"]);

            migrator.Migrate(runner => runner.MigrateUp());
        }
예제 #2
0
파일: Global.asax.cs 프로젝트: tbrito/salus
        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());
        }