Here Mudassar Ahmed Khan has explained with an example, how to set use Connection String from AppSettings.json with DbContext class in.Net Core and ASP.Net Core MVC.
Inside the Startup class, the Connection String is read from the AppSettings.json file and is used to add the DbContext service.
↧