Setting ServiceLifetime.Scoped to OrderingContext so it is explicit instead of implicit (by default).
This commit is contained in:
parent
8c6ee1003c
commit
bf5af56d32
@ -52,7 +52,10 @@
|
||||
{
|
||||
options.UseSqlServer(Configuration["ConnectionString"],
|
||||
sqlop => sqlop.MigrationsAssembly(typeof(Startup).GetTypeInfo().Assembly.GetName().Name));
|
||||
});
|
||||
},
|
||||
ServiceLifetime.Scoped
|
||||
);
|
||||
|
||||
|
||||
services.AddSwaggerGen();
|
||||
services.ConfigureSwaggerGen(options =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user