我想从app.config和appSettingKey配置我的NHibernate Fluent.
是否有人可以解释app.config文件应该如何?
MsSqlConfiguration.MsSql2005
.ConnectionString(c => c
.FromAppSetting("appSettingKey"));
Run Code Online (Sandbox Code Playgroud)
这是我的connectionsString
Data Source=(local);Initial Catalog=ABC;Integrated Security=True
Run Code Online (Sandbox Code Playgroud)
这不起作用:
<appSettingKey>"Data Source=.;Initial Catalog=ABC;Integrated Security=True"</appSettingKey>
Run Code Online (Sandbox Code Playgroud)
// Mats,斯德哥尔摩,瑞典