I've got the problem with getting ORMEntityOutOfSyncException exception occasionally for a while, even I marked Refetch After Saved to True. I guess it was because I implement thread for save process and the main thread reach the entity's property while the SaveEntity is trying to re-prefetch after saving. So I try to put lock(savingEntity) over SaveEntity call but it didn't solve that.
I finally put <add key="markSavedEntitiesAsFetched" value="true"/> in web.config so no OutOfSync state anymore after saving. It seemed OK for a few days till an hour ago that tester comes to tell me that it still happens
How can I resolve this ?
Here is the exception I got.
SD.LLBLGen.Pro.ORMSupportClasses.ORMEntityOutOfSyncException occurred
Message="The entity is out of sync with its data in the database. Refetch this entity before using this in-memory instance."
Source="SD.LLBLGen.Pro.ORMSupportClasses.NET20"
RuntimeBuild="06162009"
RuntimeVersion="2.6.0.0"
C# .NET 3.5
Adapter