mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
KILL ME I'M IN CONSTANT PAIN
This commit is contained in:
parent
435f7aa087
commit
27d72e5497
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue