Use external setting to access to database on asp .net core

  • Mar 26, 2022
  • 1
  • 887

Hello Dear all,

please I have need your help.

I want to how to use an external setting to store connnectionString.

that can allow me ton update the connectionString when my server has change

 

thank

Answers (1)

You have to use appsettings.json the file to configure your connection string. This will allow you to read the connection string from appsettings and update anytime if you want.

Please check the below article,

https://www.techieclues.com/articles/build-asp-net-core-web-api-with-crud-operations-using-entity-framework-core

 

Submit your answer