Hi, I am trying about whole day to connect a Delphi.NET app over
NHibernate to SQLite.
I cannot get it done.
I have following App.config (in the exe-directory)
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section
name="nhibernate"
type="System.Configuration.NameValueSectionHandler, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
</configSections>
<nhibernate>
<add key="hibernate.connection.driver_class"
value="NHibernate.Driver.SQLiteDriver" />
<add key="hibernate.connection.provider"
value="NHibernate.Connection.DriverConnectionProvider" />
<add key="hibernate.dialect"
value="NHibernate.Dialect.SQLiteDialect" />
<add key="hibernate.connection.connection_string" value="Data
Source=NH1.DB3;Version=3" />
<add key="hibernate.query.substitutions" value="true=1;false=0" />
</nhibernate>
</configuration>
and this code
cfg := Configuration.Create;
cfg.AddAssembly('nhibernate');
---> factory := cfg.BuildSessionFactory; <------
session := factory.OpenSession;
session.BeginTransaction;
The error message appears on the errors
---------------------------
Project4
---------------------------
The hibernate.connection.driver_class must be specified in the
NHibernate configuration section.
---------------------------
OK
---------------------------
I am using the Finisar SQLite ADO-driver, which is used to build
NHibernate (one can see in the code)
Someone have an idea?
Thanks in advance.