Is there a way to execute DbContext.SaveChanges () without calling its internal automatic transaction processing?
I process the transaction (DbTransaction) myself, but when I call Commit, I get the error "SqlConnection does not support parallel transactions" I believe that this is due to the fact that SaveChanges does its internal transactional work, which I want to suppress.
.NET 4.5, EntityFramework.dll ver 5.
googling shows several approaches, but the code is incompatible. Some, showing SaveChanges, may take a boolean value that is not in this ver. and then calls the AcceptAllChanges () method, which also does not exist. Although some use System.Transaction.TransactionScope, they differ from each other in this System.Data.Common.DbTransaction.
source share