I found this MySQL 
tutorial<http://www.codeproject.com/Articles/26123/NHibernate-and-MySQL-A-simple-example>for
 running NHibernate but cant get the app to run because this error is 
triggered:
 
Unhandled Exception: System.InvalidOperationException: Could not find the 
dialect in the configuration
   at NHibernate.Dialect.Dialect.GetDialect(IDictionary`2 props)
   at NHibernate.Cfg.SettingsFactory.BuildSettings(IDictionary`2 properties)
   at NHibernate.Cfg.Configuration.BuildSettings()
   at NHibernate.Cfg.Configuration.BuildSessionFactory()
 
 
Here is my hibernate.cfg.xml
 
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
  <session-factory>
    <property 
name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
    <property 
name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
    <property 
name="connection.connection_string">Server=localhost;...</property>
    <property name="dialect">NHibernate.Dialect.MySQL5Dialect</property>
    <mapping resource="Position.hbm.xml" assembly="NHibernateDemo" />
  </session-factory>
</hibernate-configuration>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/TRedtAiQxI8J.
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.

Reply via email to