Assuming the latest version of LLBLGen runtime:
I have an
var entity = new MyEntity(new Guid());
shared across threads. I'm saving it initially (single thread) using:
adapter.SaveEntity(entity, false, true);
and assert entity.IsNew is false.
Then the threads get at it changing some of the fields (never touching the IsNew property).
Is it possible at all that during the next:
adapter.SaveEntity(entity, false, true);
entity.IsNew will be true (for even the slightest fraction of a second) making the runtime think the it should do an insert instead of an update? My assumption would be IsNew will remain false after the first save (and thus generate updates) but we are experiencing this very problem in our application which makes me wonder whether internally it does get changed.