Why nullables doesn't work with NQA?
Starting from NHibernate Query Analyzer 1.1.3 version and upward, nullables work. Please ignore the rest of this document.
So, you've tried to use NQA to investigate your code, and you got an exception that look like this:
"could not interpret type: Nullables.NHibernate.NullableDateTimeType,Nullables.NHibernate"
Lots of users have run into this, and I've investigated this problem several times. I know what is causing it, I've no idea how to fix it.
The issue here is very simple, it has to do with assembly load context. NHiberante search for the IType of a property using (basically) Type.GetType(), which would search the Assembly.Load() only.
NQA loads assemblies using Assembly.LoadFrom() I've tried to subscribe to the TypeResolve event, which should've solved this issue, but it's not firing when I need it. I tried all sorts of things, and I couldn't get it to work. I'm not going to investe any more time in it.
Feel free to download the code and try to get it to work. If you do, I would be more than happy to gives you any sort of imformation that you need.
Sorry for leaving you out to dry, but NQA was never meant to be the end-all-be-all tools for NHibernate. I started writing it for learning how NHibernate worked. And I think that it has some great freatures (you can't beat it for Hbm generation, IMO), but I just don't have the time and energy to do that.