TransactionScope bug in .NET? More information?

前端 未结 2 911
迷失自我
迷失自我 2020-12-08 07:56

I have read (or perhaps heard from a colleague) that in .NET, TransactionScope can hit its timeout and then VoteCommit (as opposed to VoteRollback). Is this accurate or hea

2条回答
  •  情深已故
    2020-12-08 08:40

    The behaviour that Marc Gravell described has been changed in .Net 4.0. Instead of the operation being autocommitted, it will now throw an InvalidOperationException. So in 4.0 you no longer need to use Explicit Unbind.

提交回复
热议问题