我长期使用流利的nhibernate。它的工作正常,直到我更新我的数据库。在此之前,我使用SQL Server 2012,并更新到2016年时,试图在数据库应用程序连接,它抛出一个错误:在nhibernate中连接数据库时系统找不到文件
The system cannot find the file specified.
,当它试图连接。我的连接功能如下
Fluently.Configure().Database(MsSqlConfiguration.MsSql2005.ShowSql().ConnectionString(x=> x.FromConnectionStringWithKey("imConnectionString2"))).Mappings(m=> m.FluentMappings.AddFromAssemblyOf<MapUsers>()).BuildSessionFactory();
这在数据库更新前工作正常。我将MsSql2005
更改为MsSql2012
,但结果相同。
我需要在Fluent Nhibernate侧面或配置上做什么吗?
任何帮助,请
添加完整的例外信息。 –
如果你解决了问题,你能反馈吗? –
感谢您的回复,但它不适合我,所以我恢复使用旧服务器 –