我的Azure功能应用程序已定义ConnectionString.我想从用dotnet标准2.0编写的C#函数中检索它.我已经尝试添加System.Configuration.ConfigurationManager到project.json并使用
var str = ConfigurationManager.ConnectionStrings["my string"].ConnectionString;
Run Code Online (Sandbox Code Playgroud)
但我得到了错误
run.csx(24,15):错误CS0103:当前上下文中不存在名称"ConfigurationManager"
如何访问连接字符串?
connection-string sqlconnection .net-core azure-functions .net-standard