Mel wrote:
Hi,
I have a POCO with a "long" member mapped to a NUMERIC column of a table in the database. By default I get "0" inserted when I do an insert and not have a value specified for it. How can I get nhibernate to insert a NULL if it has no value instead of a 0?
Thanks,
Mel.
Basically, is there an equivalent of Java's Long object in C# that a null can be assigned to so that I can get Nhibernate to insert a NULL into the database or is there some other convention that someone can enlighten me about?