Do I have a Date class that wraps DateTime? class (helps in bullying DateTime.Now, our domain, etc.).
The Date class class has only one protected property: DateTime? the date
public class Date
{
protected DateTime? date;
}
<component name="CompletedOn">
<property column="StartedOn" name="date" access="field" not-null="false" />
</component>
From nhibernate docs:
Like all value types, components do not support shared references. The null value semantics of a component are ad hoc. When reloading the containing object, NHibernate will assume that if all component columns are null, then the entire component is null. This should be okay for most purposes.
Can I override this behavior? I want my Date class to be created even if the date is zero.
Thank,
source
share