#aspnetcore #getconnectionstring
How to Get Connection string from Appsettings.json in ASP.NET CORE
In this video you find that how to Get Connection string from Appsettings.json in startup.cs class in ASP.NET CORE.
For more details please visit the website
https://www.coreprogramm.com/2020/04/...
Source code is find on:
https://github.com/CoreProgramm/Read-...
Microsoft has replaced System.Configuration class with IConfiguration interface in .Net Core.
➤ What is IConfiguration ?
The IConfiguration is an interface for .Net Core.
The IConfiguration interface need to be injected as dependency in the Controller and then later used throughout the Controller.
The IConfiguration interface is used to read Settings and Connection Strings from AppSettings.json file.
Don't forget to subscribe to "CoreSpider" !
Website : https://www.corespider.com/
Facebook : / corespider
Twitter : / corespiderpro
Instagram : / corespider
Github : https://github.com/corespider