KILL ME I'M IN CONSTANT PAIN

This commit is contained in:
Michael 2017-03-21 12:32:39 -04:00
parent 435f7aa087
commit 27d72e5497

View file

@ -18,6 +18,7 @@ protected void Application_Start()
{
var configuration = new Migrations.Configuration();
var migrator = new DbMigrator(configuration);
migrator.Update();
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
@ -27,6 +28,11 @@ protected void Application_Start()
protected void Application_BeginRequest(object sender, EventArgs e)
{
var configuration = new Migrations.Configuration();
var migrator = new DbMigrator(configuration);
migrator.Update();
var addr = HttpContext.Current.Request.UserHostAddress;
var db = new ApplicationDbContext();