0

Suppose I have two nested transactions and both have transactionScope RequiresNew and now suppose the outer transaction saves the entity but the transaction is not committed yet and now the inner transaction make some updation on the entity saved above and saves it to db but on Committing transaction it throws exception. Yes it is logically true since the changes made by outer transaction are not Committed but I would like to know exactly why is it so? I am using EF 4.1 DbContext and TransactionScope.Any help will be highly appericiable.

4

1 回答 1

-2

虽然嵌套事务在技术上是可行的,但它们在逻辑/概念上没有任何意义。我会简单地避免嵌套事务。

于 2012-06-28T20:04:07.670 回答