Answer the question
In order to leave comments, you need to log in
What is the best way to bypass blocking?
Hello.
I have client request handlers on the server. It goes something like this:
Запрос
{
НачалоТранзакции (IsolationLevel=Snapshot)
{
try
{
repo.UserRepo.ChangeSomething(..);
repo.ShipRepo.ChangeSomething(..);
repo.BuildingRepo.ChangeSomething(..);
...
SaveChanges();
Commit();
}
catch
{
Rollback();
!!! Если произошла взаимоблокировка в транзакции, то повторить транзакцию заново
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question