I have an entity class
public class MyEntity{
//other props
public virtual int? ClaimType {get;set;}
}
and a mapping of:
public class MyEntityMap : ClassMapping<MyEntity>
{
public MyEntityMap()
{
Property(x=>x.ClaimType, x=> { x.Update(false);x.NotNullable(false);});
}
}
And on selecting some rows from this table NH issues the following update
to the DB:
"update MyEntities set ClaimType=0 where id=1"
Where the row with the Id=1 has a "NULL" in the column ClaimType.
Not sure why it's issuing this update when:
- I have "update(false" on the mapping
- Its already a nullable property
Any ideas?
Thanks, Mark
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.