ConnectionString from EnvironmentVariables in web.config

I have a concern on how to get the ConnectionString from Environment Variables. I normally set the environmentvariables and then use CONFIGURATIONBUILDER to read VALUES of KEY from the WEB.CONFIG using ConfigurationManager.AppSettings["KEY_NAME"], and works ok. But when I am tryng to read a ConnectionString in the ConnectionString Section from the WEB.CONFIG it does not work. Any sugest on how to get the ConnectionString from the ENVIRONMENT VARIABLES.

Any suggest on how to read ConnectionString from EnvironmentVariables, please?

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.