无法从NHibernate.driver.SQLite20Driver创建驱动程序,NHibernate,版本=3.1.0.4000
我有一个测试项目,我正在尝试使用内存数据库中的SQLLite测试我的nhibernate层 我得到了一个错误: 无法从NHibernate.driver.SQLite20Driver创建驱动程序,NHibernate,版本=3.1.0.4000,无法从NHibernate.driver.SQLite20Driver创建驱动程序,NHibernate,版本=3.1.0.4000,nhibernate,sqlite,fluent-nhibernate,Nhibernate,Sqlite,Fluent Nhibernate,我有一个测试项目,我正在尝试使用内存数据库中的SQLLite测试我的nhibernate层 我得到了一个错误: 无法从NHibernate.driver.SQLite20Driver创建驱动程序,NHibernate,版本=3.1.0.4000, private void CreateSessionFactory() { _sessionFactory = Fluently .Configure() .Database(_d
private void CreateSessionFactory()
{
_sessionFactory = Fluently
.Configure()
.Database(_dbType)
.Mappings(m => m.FluentMappings
.AddFromAssemblyOf<UserMap>())
.ExposeConfiguration(cfg => _configuration = cfg)
.BuildSessionFactory();
}
如果我尝试在vs.net 2010中添加Interop.dll,它不会让我说它无法添加,请确保它有效等。的最新版本作为2个dll分发
- System.Data.SQLite.dll
- SQLite.Interop.dll
另一个要记住的是,<强> SQLite .Inop.DLL>强> ITSLF依赖于<强> MsVCR100.DLL>强(部分Visual C++ 2010 SP1可重分发包)。你可以在这里找到它:
- System.Data.SQLite.dll
- SQLite.Interop.dll
另一个要记住的是,<强> SQLite .Inop.DLL>强> ITSLF依赖于<强> MsVCR100.DLL>强(部分Visual C++ 2010 SP1可重分发包)。你可以在这里找到它:
Unable to load DLL 'SQLite.Interop.DLL': The specified module could not be found. (Exception from HRESULT: 0x8007007E)