Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
NHibernate升级时SQLite出错(2到3)_Nhibernate_Sqlite - Fatal编程技术网

NHibernate升级时SQLite出错(2到3)

NHibernate升级时SQLite出错(2到3),nhibernate,sqlite,Nhibernate,Sqlite,当我将我的NHibernate从2升级到3时,我的SQLite tem数据库显示一个错误: 找不到任何适合指定区域性或非特定区域性的资源。确保System.Data.SQLite.SR.resources在编译时正确嵌入或链接到assembly System.Data.SQLite,或者确保所需的所有附属程序集都是可加载和完全签名的 使用SQLServer的项目工作正常,但使用SQLite的测试项目显示此错误 有解决办法吗 我的CFG: <property name="connec

当我将我的NHibernate从2升级到3时,我的SQLite tem数据库显示一个错误:

找不到任何适合指定区域性或非特定区域性的资源。确保System.Data.SQLite.SR.resources在编译时正确嵌入或链接到assembly System.Data.SQLite,或者确保所需的所有附属程序集都是可加载和完全签名的

使用SQLServer的项目工作正常,但使用SQLite的测试项目显示此错误

有解决办法吗

我的CFG:

    <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
    <property name="show_sql">true</property>
    <property name='proxyfactory.factory_class'>NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
    <property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
    <property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property>`
Tks[]


帕特里克·科埃略可能,你已经找到了解决办法。但我遇到了同样的问题。使用Fluent Nh config的此设置为我解决了此问题:

.Database(SQLiteConfiguration.Standard.InMemory().Raw("hbm2ddl.keywords", "none").ShowSql())
是“原始”的东西产生了魔力。我从这篇文章中得到: