mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-23 01:32:16 +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 configuration = new Migrations.Configuration();
|
||||||
var migrator = new DbMigrator(configuration);
|
var migrator = new DbMigrator(configuration);
|
||||||
|
|
||||||
migrator.Update();
|
migrator.Update();
|
||||||
AreaRegistration.RegisterAllAreas();
|
AreaRegistration.RegisterAllAreas();
|
||||||
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
|
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
|
||||||
|
@ -27,6 +28,11 @@ protected void Application_Start()
|
||||||
|
|
||||||
protected void Application_BeginRequest(object sender, EventArgs e)
|
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 addr = HttpContext.Current.Request.UserHostAddress;
|
||||||
var db = new ApplicationDbContext();
|
var db = new ApplicationDbContext();
|
||||||
|
|
Loading…
Reference in a new issue