From: Геннадий З. <zab...@gm...> - 2015-09-17 14:33:02
|
I'm trying to insert to database multiple items at once via following code: using (var transaction = act.Database.BeginTransaction(System.Data.IsolationLevel.RepeatableRead)) { // inserting and updating several related entities. act.SaveChanges() // Throws exception } Exception message: lock conflict on no wait transaction deadlock update conflicts with concurrent update concurrent transaction number is 665378 A problematic query that throws is about updating the entity, that all my queries update. Using any other IsolationLevel doesn't affect the behavior. |