【发布时间】:2017-03-22 19:50:39
【问题描述】:
我在我的 c# 项目中使用 NHibernate 将数据保存到数据库以及检索它。 app.config 中有 nhibernate-configuration 部分,其中包括与 NHibernate 相关的属性。但是我需要使用来自不同来源的连接字符串,问题是在运行时更新 app.config 中的这个属性。那可能吗?我可以以某种方式更新属性“connection.connection_string”吗?
【问题讨论】:
标签: c# nhibernate configuration connection-string app-config