The assembly name in the dialect class. If you can spent 15 minutes reading those links above, you can use the new strongly typed configuration-by-code and avoid this kind of problems.
On Tue, Dec 21, 2010 at 5:27 PM, Yoav <[email protected]> wrote: > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- Fabio Maulo -- 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.
