MC_2018
Explore posts from serversDbContext with IServiceProvider: whether or not to have a using statement
Hello, I have a straightforward question regarding using a DbContext from IServiceProvider. I'm aware that traditionally, when creating a DbContext, you should have a
using
statement; is this still needed when using the IServiceProvider?
Or does the IServiceProvider handle disposal and no longer require it?
3 replies