New Posts New Posts RSS Feed: Deadlock determination
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Deadlock determination

 Post Reply Post Reply
Author
ritaf View Drop Down
Newbie
Newbie


Joined: 23-Jan-2012
Posts: 5
Post Options Post Options   Quote ritaf Quote  Post ReplyReply Direct Link To This Post Topic: Deadlock determination
    Posted: 23-Jan-2012 at 5:59pm

Hi,

I am a novice DevForce developer, so my question is probably very trivial.

Is there a way to detect deadlock errors (or to distinguish any other data provider errors) when EntityManager.SaveChanges/SaveChangesAsync fails? I want to retry saving changes if they fail due to the database deadlock.  When deadlock occurs I can see a particular type of exception on a server side in EntityServerSaveInspector.OnError as an InnerException but I am not sure if I can retry at this point.  On a client side, error is returned as a generic EntityManagerServerException and InnerException is not set.  I can see RemoteExceptionDetails but I cannot see the original error number, so I cannot make a determination that it’s a deadlock error.

Thank you,

Rita

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down