Digging deeper into DbContext in Entity Framework Core
EF Core allows you to instantiate a DbContext in several ways. Learn when and how to use these different approaches in your ASP.NET Core applications.
Onconfiguring Dbcontextoptionsbuilder Applicationdbcontext Dbcontextoptions Idgcontroller Idbcontextfactory Idgcontroller Idgdbcontext Entity Framework Core Entity Framework
Source: infoworld.com