Year: 2010

  • Upgrade to NHibernate 3.0 and FluentNHibernate 1.2.0

    We had some problems loading multiple assemblies when we upgraded from NHibernate2.1.2 to NHibernate3.0. Here is the setup of loading all mapping files from all the assemblies that have mappingfiles, that we succesfully used for NH2.1.2. private static FluentConfiguration CreateNHibernateConfiguration() { // reads settings from config Configuration nHibernateConfiguration = new NHibernate.Cfg.Configuration(); // configure default NHibernate…

  • NHibernate.DuplicateMappingException due to work in constructor

    We encountered the following problem: Nhibernate could not configure itself somehow… NHibernate.DuplicateMappingException NHibernate.MappingException: Could not compile the mapping document: xxxxxx.hbm.xml Of course, we checked if we did not accidentily mapped a certain class twice, but we were sure we didn’t. In the end, it turned out NHibernate could load all of the assemblies that we…