File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
OpenIddict.Sandbox.AspNet.Client
OpenIddict.Sandbox.AspNet.Server Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,9 @@ public void Configuration(IAppBuilder app)
104104 var builder = new ContainerBuilder ( ) ;
105105 builder . Populate ( services ) ;
106106
107+ // Register the Entity Framework context.
108+ builder . RegisterType < ApplicationDbContext > ( ) . AsSelf ( ) . InstancePerLifetimeScope ( ) ;
109+
107110 // Register the MVC controllers.
108111 builder . RegisterControllers ( typeof ( Startup ) . Assembly ) ;
109112
Original file line number Diff line number Diff line change @@ -125,6 +125,9 @@ public void Configuration(IAppBuilder app)
125125 var builder = new ContainerBuilder ( ) ;
126126 builder . Populate ( services ) ;
127127
128+ // Register the Entity Framework context.
129+ builder . RegisterType < ApplicationDbContext > ( ) . AsSelf ( ) . InstancePerLifetimeScope ( ) ;
130+
128131 // Register the MVC controllers.
129132 builder . RegisterControllers ( typeof ( Startup ) . Assembly ) ;
130133
You can’t perform that action at this time.
0 commit comments