Access existing connection string in web.config to new .NET Core Web API

.net .net-core api c# entity-framework-core

Question

I am new to .NET Core Web API. I was able to create a .NET Core Web API using the documentation provided and help from the people here. Documentation shows a way to access the database by putting a connection string in the appsettings.json which includes the database credentials, even though I already add encrypt I was thinking that this might not be completely safe. Is there a way to access the connection string from my existing web.config in the new appsettings.json?

1
1
1/30/2020 7:22:08 AM

Popular Answer

You may use ASP.NET Core Secret Manager tool for development environment and for production, you may use Azure vault.

0
1/30/2020 7:28:58 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow