Avoid ORMEntityOutOfSyncException

Posts   
 
    
Posts: 22
Joined: 01-Feb-2011
# Posted on: 09-Mar-2011 13:15:47   

Hi,

Is it possible to avoid the ORMEntityOutOfSyncException after SaveEntity is called without refetching it, due to performance reasons?

King regards, Mario

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 09-Mar-2011 15:23:46   

You can mark the entity as fetched, either manually after the fetch by setting the entity.Fields.State property.

Or you can set it globaly by:

<add key="markSavedEntitiesAsFetched" value="true"/>

ref: Documentation Link