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

preview_player
Показать описание
#aspnetcore #getconnectionstring

For more details please visit the website

Source code is find on:

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.

Don't forget to subscribe to "CoreSpider" !

Рекомендации по теме
Комментарии
Автор

Nice content. Waiting for new videos on .Net Core

melissasmith
Автор

I followed the exact instructions and I am still getting connection string as null.. can you please help ?

ninaghosh