The following configuration is throwing an exception with an inner message that says “Could not compile the mapping document”.
return Fluently.Configure()
.Database(FluentNHibernate.Cfg.Db.JetDriverConfiguration.Standard
.ConnectionString(x => x.DatabaseFile(@"C:\Users\username\Documents\App_Survey.accdb")))
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<Question>())
//.ExposeConfiguration(BuildSchema)
.BuildSessionFactory();
Question is a domain object that is compiled into the same assembly as the mappings. Can someone tell me how I might being to resolve this?
Probably the exception is:
You need to download the “NHibernate.JetDriver” separately from nhcontrib project.
Checkout the source code from Source Forge: https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/trunk and then build it (/trunk/src/NHibernate.JetDriver).