how to read values from appsettings.json in c#
There are two methods to retrieve our values,
string dbConn = configuration.GetSection("MySettings").GetSection("DbConnection").Value;
string dbConn2 = configuration.GetValue<string>("MySettings:DbConnection");