Setting ServiceLifetime.Scoped to OrderingContext so it is explicit instead of implicit (by default).

This commit is contained in:
CESARDL 2017-02-01 18:56:28 -08:00
parent 8c6ee1003c
commit bf5af56d32

View File

@ -52,7 +52,10 @@
{
options.UseSqlServer(Configuration["ConnectionString"],
sqlop => sqlop.MigrationsAssembly(typeof(Startup).GetTypeInfo().Assembly.GetName().Name));
});
},
ServiceLifetime.Scoped
);
services.AddSwaggerGen();
services.ConfigureSwaggerGen(options =>