Hi
Silvio,
We
have done some optimization to prevent deadlocks. But in case they still occur I want to add an
ability for the application to retry the save.
I can retry calling SaveChangesAsync from the client but I need to have
a way to determine that the error was in fact a deadlock error. Currently, on a client I can only get exception
message, stack and etc. (RemoteException properties of EntityManagerException)
and generic FailureType. I need to find something
in the EntityManagerSaveException that will tell me the error number.
In case of a deadlock, EntityServerSaveInterceptor.OnError
inner exception is System.Data.SqlClient.SqlException, error number 1205.
Thank you,
Rita