So doing the test, its definitely because I'm mapping an int to an
enum.
Now what should I do instead? Have an NHibernate mapped property that
is int to int and have another property or method that I actually use
to get and set the NHibernate property and do the enum to int type
setting?
On Jan 21, 12:25 pm, José F. Romaniello <
jfromanie...@gmail.com>
wrote:
> Maybe you have a nullable column, with nullable values mapped to a not
> nullable property in .net:
> imagine you have an int column, with null values, mapped to a System.Int32:
> in this case nhibernate will load the value as 0... and when checking if
> the value has changed... 0 != null. .so it will update the value to 0.
>
> Another case is when you have wrong types suchs a wrong mapped enum.
> The ghostbuster will tell you what is the column/property with problems.
>
> 2011/1/21 Scott <
scott.r.down...@gmail.com>
> > <
nhusers%2Bunsu...@googlegroups.com<nhusers%252Bunsubscribe@googlegroup
s.com>>