Hi all,
I have a problem which I really cannot diagnose.
I am using NH in conjunction with Castle.Facilities.NhibernateConfiguration
I have got the latest version of the NHibernate source from svn (NHibernate-2.0.0.Alpha1) and the latest version of Castle. I compiled the NHibernate source first using the .build file. I then configured the Castle stuff against the NHibernate.
Now when I try and run my app., I get
The dialect was not set. Set the property 'dialect'.
I debugged through the NHibernate source and in the NHibernate.Cfg.Congiguration class the Dictionary of properties are different than my configuration. The line:
string dialectName =
Code:
(string)props[Environment.Dialect];
Is returning null because my castle configuration looks like this:
Code:
<settings>
<item key="hibernate.connection.provider">NHibernate.Connection.DriverConnectionProvider</item>
<item key="hibernate.connection.driver_class">NHibernate.Driver.SqlClientDriver</item>
<item key="hibernate.dialect">continuity2.core.nhibernate.MsSql2005Dialect,continuity2.core</item>
<item key="hibernate.connection.connection_string">Server=server;Database=ncontinuity2;UID=ncontinuity2user;pwd=Passw0rd;</item>
<item key="hibernate.cache.provider_class">NHibernate.Caches.SysCache.SysCacheProvider, NHibernate.Caches.SysCache</item>
<item key="hibernate.cache.use_query_cache">true</item>
<item key="relativeExpiration">216000</item>
<item key="hibernate.show_sql">false</item>
</settings>
So Environment.Dialect should equal ‘hibernate.dialect’ but actually has the value ‘dialect’.
I am curious as to why this is.
Cheers
Paul