I have been trying to use SQLite with NHibernate, but thus far have
been unsuccessful. I saw Ayende's post on using it here:
http://www.ayende.com/Blog/archive/2006/10/14/7183.aspx
The configuration there did not work for me.
I also tried the configuration in this article:
http://www.ayende.com/Blog/archive/2006/10/14/7183.aspx.
That configuration did not work for me either.
I am using NHibernate 1.2.1 GA. I am also using the
NHibernateFacility from Castle.
Here is my configuration:
<facility
id="nhibernatefacility"
type="Castle.Facilities.NHibernateIntegration.NHibernateFacility,
Castle.Facilities.NHibernateIntegration"
isWeb="true">
<factory id="sessionFactory1">
<settings>
<item
key="hibernate.connection.provider">NHibernate.Connection.DriverConnectionProvider</
item>
<item
key="hibernate.connection.driver_class">NHibernate.Driver.SQLiteDriver</
item>
<item
key="hibernate.connection.connection_string">Data
Source=demo.db;Version=3</item>
<item
key="hibernate.dialect">NHibernate.Dialect.SQLiteDialect</item>
<item
key="hibernate.query.substitutions">true=1;false=0</item>
</settings>
<assemblies>
<assembly>AgCg.Core</assembly>
<assembly>AgCg.ContentManagement</assembly>
</assemblies>
</factory>
</facility>
Is there a SQLite executable or dll I am supposed to have in my bin
folder to get this to work? Do I have to edit the machine.config file
to put in a provider?
Thanks,
Robert