(#10) How to Get Connection string from Appsettings.json in ASP.NET CORE

Published: 05 April 2020
on channel: Jayant Tripathy
7,927
32

#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


Watch video (#10) How to Get Connection string from Appsettings.json in ASP.NET CORE online without registration, duration hours minute second in high quality. This video was added by user Jayant Tripathy 05 April 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,927 once and liked it 32 people.