Data committed even though System.Transactions.TransactionScope.Commit() not called

前端 未结 4 1736
温柔的废话
温柔的废话 2020-12-19 12:39

Under what circumstances can code wrapped in a System.Transactions.TransactionScope still commit, even though an exception was thrown and the outermost scope ne

4条回答
  •  既然无缘
    2020-12-19 13:10

    The obvious scenario would be where a new (RequiresNew) / null (Suppress) transaction is explicitly specified - but there is also a timeout/unbinding glitch that can cause connections to miss the transaction. See this earlier post (the fix is just a connection-string change), or full details.

提交回复
热议问题