Hi,
I'm looking for a point in the right direction to solving this problem.
I am being passed an object from the ui.
One of the values is for a foreign key (an int which allows nulls). The value being sent is -1 which signifies that the value has not been set by the user.
How can I write this object to the db setting the foreign key to a null value.
I am using NHibernate with fluent for the mapping.
Also, is this good practice? Or am I better setting up a default value to fall back on.
Any help much appreciated.