So, I am trying to use Sqlite with NH and I am getting an error.
The IDbCommand and IDbConnection implementation in the assembly
SQLite.NET could not be found. Ensure that the assembly SQLite.NET is
located in the application directory or in the Global Assembly Cache.
If the assembly is in the GAC, use element in the application
configuration file to specify the full name of the assembly.
Did any of you guys out there experience something similar?
Let me say that dll is in the bin directory, I made sure. I am using
System.Data.SQLite.DLL version 1.0.60.0. I am running this on Window
XP box. I am using FluentNH to configure SessionFactory:
_sessionFactory = Fluently.Configure(cfg)
.Mappings(m=> m.FluentMappings.AddFromAssembly
(Assembly.Load("dnnSphere.Meta")))
.BuildSessionFactory();
Here is the hibernate.cfg.xml:
<property name="connection.driver_class">
NHibernate.Driver.SQLiteDriver
</property>
<property name="connection.connection_string">
Data Source=nhibernate.db;Version=3
</property>
<property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
<property name="query.substitutions">true=1;false=0</property>
<property name="show_sql">true</property>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---