【发布时间】:2020-02-23 02:22:48
【问题描述】:
这是一个 Windows 应用程序。它与本地 SQL 数据库对话,连接字符串保存在 app.config 中,即:
代码:
System.Configuration.ConfigurationManager.AppSettings.Get("CaseMgmtConn")
什么都没有
我有以下设置:
这里有什么问题?非常感谢。
更新:
我相信这里一定缺少一些东西,因为我无法得到任何东西:
System.Configuration.ConfigurationManager.ConnectionStrings("CaseMgmtConn")
什么都没有
这会返回 Nothing:
【问题讨论】: