From 79bc3b32725e4c470f02e106744e7e82601f9945 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Thu, 23 Aug 2018 22:39:45 +0200 Subject: [PATCH] Add custom initializer --- Plattform/Plattform/Global.asax.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Plattform/Plattform/Global.asax.cs b/Plattform/Plattform/Global.asax.cs index 9781390..3c0b8c1 100644 --- a/Plattform/Plattform/Global.asax.cs +++ b/Plattform/Plattform/Global.asax.cs @@ -4,6 +4,9 @@ using System.Linq; using System.Web; using System.Web.Security; using System.Web.SessionState; +using System.Data.Entity; +using Plattform.Helper; + namespace Plattform { @@ -11,6 +14,7 @@ namespace Plattform { protected void Application_Start(object sender, EventArgs e) { + Database.SetInitializer(new EntitiesContextInitializer()); } } -} \ No newline at end of file +}