Well, it seems I'm not in the clear yet. I now get this error:
Failed to open connection to the application. --->
NHibernate.MappingException: Could not compile the mapping document:
Themis.DatabaseServer.Mappings.Project.hbm.xml --->
System.InvalidOperationException: Could not find the dialect in the
configuration

                    Configuration cfg = new Configuration();
                    cfg.AddAssembly(this.GetType().Assembly);
                    cfg.Properties["hibernate.connection.provider"] =
"NHibernate.Connection.DriverConnectionProvider";
                    cfg.Properties["hibernate.dialect"] =
"NHibernate.Dialect.MsSqlCeDialect";
 
cfg.Properties["hibernate.connection.driver_class"] =
"NHibernate.Driver.SqlServerCeDriver";
 
cfg.Properties["hibernate.connection.connection_string"] = path;

                    cfg.AddXmlFile("Project.hbm.xml");
                    sessionFactory = cfg.BuildSessionFactory();

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
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