Hello,
Having an issue with a version column on my entity, if I say do something like.
Item item = session.Get(1);
item.Parent = new Parent() { Id = 2 }
session.update(item);
All my entites have an RowVersion column, this causes issues as I think due to rowversion being null, it is inserting a new parent not attaching to it, if I remove the version column it will work fine. I am trying to avoid selecting the parent entity first.
Is there something I am missing here, I have tried setting the unsaved-value="undefined" on the version and then unsaved-value="0" on the id column. I did read that if the version is null the entity will instantly be assumed transient.
Any help would be appreciated.
Cheers
|