1
If you look at the Asp.net core source code in https://github.com/aspnet/Extensions/blob/master/src/Configuration/Config.Abstractions/src/ConfigurationExtensions.cs
You may notice that the extension Getconnectionstring works as a shortcut for the section "ConnectionStrings
", then change your appsettings.json to:
"ConnectionStrings": {
"ConnectionLoja": ....
}
Tip: It’s interesting to publish the questions with the source code and not an image, it makes the answers easier.