How do I tell NHibernate to load a component as not null even when all its properties are null?
- by SharePoint Newbie
Hi,
I have a Date class which wraps over the DateTime? class (aids in mocking DateTime.Now, our domain ,etc).
The Date class class only has one protected property : DateTime? date
public class Date
{
protected DateTime? date;
}
// mapping in hbm
<component name="CompletedOn">
<property column="StartedOn" name="date"…