-
Hello, we have entities with (ISet-) collections which are updated when nothing has changed, only the collection is dirty. Short: I've created an example project. I'm using FluentNHibernate for this example. Assume we have an entity:
With the following map
We create our first data (with a fresh session which is committed and flushed at the end etc)
In some other session we create our child data and assign parent:
Current behavior:
Expected behavior:
Test:
Can i change / Is it possible to change behavior to "Only udpate RowVersion when some persistent Property has changed"? Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
From docs :
In Fluent NHibernate you need to add this.HasMany(x => x.Children).Inverse().Not.OptimisticLock(); |
Beta Was this translation helpful? Give feedback.
From docs :
In Fluent NHibernate you need to add
.Not.OptimisticLock()
to collection mappings: