Hi,
New to NHibernate. Downloaded a simple example (after looking around for a while).
It is working ok.
The problem is that the example was a single project. I wanted to isolate the Data layer so i transfered the code+file+references+app.config to a class project.
I tried to call the 'Data layer' project from another project.I get :
'Could not compile the mapping document: PersonTop.Person.hbm.xml'
exception and
'Could not find the dialect in the configuration'
as innerexception.I repeat
everything (files+files properties+references+etc......) is the same.
- using NHibernate 2.0.1 + VS2008 + SQLite 3
App.config
Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section
name="hibernate-configuration"
type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"
/>
</configSections>
<!-- Add this element -->
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property>
<property name="connection.connection_string">Data Source=C:\Infos\SQLLite\Teste\GlobalData.db3;Version=3;New=True;</property>
<property name="connection.release_mode">on_close</property>
</session-factory>
</hibernate-configuration>
</configuration>
I'm not putting neither code or mapping file because everything works , as long as i keep everything together in the same project.
Help please