Hi.
I'd like to use Nullables with NHibernate (not the Contrib, but the Nullables from the .NET 2.0).
My question is: is there any problem using Nullables in my classes and NHibernate Types in .hbm.xml?
I'd like to write something like this:
Xml mapping
Code:
...
<property column="CLI_DATAMAIORFATURA" type="DateTime" name="CliDatamaiorfatura" />
...
Class
Code:
private DateTime? _cli_datamaiorfatura;
public DateTime? CliDatamaiorfatura
{
get { return _cli_datamaiorfatura; }
set { __cli_datamaiorfatura = value; }
}
I've written some samples (CRUD) and I've not found any problem, but they were just simple samples.
Is it ok?
Thanks!