Synchronizing problems

Posts   
 
    
pvilanova
User
Posts: 24
Joined: 01-Apr-2007
# Posted on: 20-Apr-2007 09:06:32   

Hi,

I'm having a lot of synchronizing errors:

{"The entity is out of sync with its data in the database. Refetch this entity before using this in-memory instance."}

I have an entity in memory, sometimes gives that error, sometimes not. I'm using data adapter.

There is some way to disable synchronizing?, i will handle it by hand.

Regards.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 20-Apr-2007 11:25:21   

Try the following:

myEntityInstance.Fields.State = EntityState.Fetched;
pvilanova
User
Posts: 24
Joined: 01-Apr-2007
# Posted on: 20-Apr-2007 23:23:54   

I'm still having problems.

No way to disable sync?

Regards.

pvilanova
User
Posts: 24
Joined: 01-Apr-2007
# Posted on: 20-Apr-2007 23:55:45   

I have an entity of type A, which have a collection of entities of type B, when u modify and save to DB an entity of type B, then almost all the collection goes OutOfSync, not only the modified entity.

And please note that ALMOST all the collection, some of them OutOfSync, and others Fetched.

Regards.

pvilanova
User
Posts: 24
Joined: 01-Apr-2007
# Posted on: 21-Apr-2007 00:04:33   

Ok, problem solved

Regards!