Hi Guys,
Is there any way of checking when adding an assembly to the NHibernate.Cfg.Configuration to see if the assembly has already been registered?
I am currently using Cuyahoga (a open source cms) and have just developed 3 modules for it (they share the same project as they share resources so didn't want to duplicate code)
The CMS dynamically loads the modules, and registers their assemblys with the Configuration object, however because they share the same assembley, it throws a DuplicateMappingException.
They only way i can think of is to do a try catch around the AddAssembly and just catch DuplicateMappingException and ignore it.
Does anybody know any better way?
Cheers guys
Matt
|