Load Connection String from Config File in Azure Functions

前端 未结 6 1734
伪装坚强ぢ
伪装坚强ぢ 2020-12-20 13:09

In my Azure Function I am using a Library which establishes a connection to an SQL server via the ConnectionString from the ConfigurationManager like this:

v         


        
6条回答
  •  死守一世寂寞
    2020-12-20 13:55

    You should be able to manage your configuration settings with an appsettings.json file in your project structure. You can take a look here for an example of the folder structure for Azure Functions.

    Additionally, this link will have some details about how to manage configuration settings with .NET Core.

提交回复
热议问题