I am new to NHibernate and .NET in general. My problem is with nullable DateTime fields and I have found several other posts dealing with the topic. Some notable suggestions include:
Using NullableDateTime from NHibernateContrib:
http://nhibernate.sourceforge.net/forum ... .php?t=240
Changing the DateTimeType class (which means remembering to make the same change every time NHibernate is updated):
http://nhibernate.sourceforge.net/forum ... c.php?t=22
What is wrong with just using DateTimeSqlType? I tried a very simple test, and it appears to support null values without a problem. What about NullableType?
Has anyone tried more than one of these techniques or have advice regarding which one to use?
Thanks,
Chris
[UPDATE]
I took my simple test a little farther, and it looks like DateTimeSqlType is not meant to hold a DateTime value. I suppose that rules DateTimeSqlType out, so the only options left are the 2 mentioned in the threads above.