久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

.NET 中的 TransactionScope 錯誤?更多信息?

TransactionScope bug in .NET? More information?(.NET 中的 TransactionScope 錯誤?更多信息?)
本文介紹了.NET 中的 TransactionScope 錯誤?更多信息?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我已經讀到(或者可能從同事那里聽說)在 .NET 中,TransactionScope 可以達到超時,然后是 VoteCommit(而不是 VoteRollback).這是準確的還是道聽途說的?我無法在網絡上找到有關此問題的信息(如果它是一個問題),所以我想知道是否有人對此有任何直接的經驗并且可以提供一些啟發?

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 hearsay? I couldn't track down information on the web that talked about this issue (if it IS an issue), so I wonder if anyone has any direct experience with it and can shed some light?

推薦答案

如果您的意思是與 SQL Server 相關,那么您可以在連接字符串中修復一個問題;在此處查看我的回復,或完整的細節 這里.

If you mean in relation to SQL Server, then there is an issue that you can fix in the connection string; see my reply here, or the full details here.

簡短版本是:確保您在連接字符串中有Transaction Binding=Explicit Unbind;.

The short version is: ensure you have Transaction Binding=Explicit Unbind; in the connection string.

它實際上并沒有進行投票提交 - 事務(和任何早期操作)已經回滾,但任何后續操作(仍在 TransactionScope 內)都可以在 nul-transaction 中執行, 即自動提交.

It isn't actually doing a vote commit - the transaction (and any early operations) has rolled back, but any subsequent operations (still inside the TransactionScope) can get performed in the nul-transaction, i.e. auto-commit.

這篇關于.NET 中的 TransactionScope 錯誤?更多信息?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

LINQ to SQL and Concurrency Issues(LINQ to SQL 和并發問題)
SQL Server 2005 Transaction Level and Stored Procedures(SQL Server 2005 事務級和存儲過程)
Yield return from a try/catch block(try/catch 塊的收益回報)
Should I call Parameters.Clear when reusing a SqlCommand with a transation?(重用帶有事務的 SqlCommand 時,我應該調用 Parameters.Clear 嗎?)
Does SqlTransaction need to have Dispose called?(SqlTransaction 是否需要調用 Dispose?)
Reason for System.Transactions.TransactionInDoubtException(System.Transactions.TransactionInDoubtException 的原因)
主站蜘蛛池模板: 日本一区二区影视 | 欧美一区二区久久 | 在线视频一区二区 | 国产欧美一区二区三区免费 | 日韩一区和二区 | 91视频正在播放 | 青青草网站在线观看 | 精品二区| 国产激情一区二区三区 | 最新国产视频 | 免费观看一级毛片 | 九九色综合 | 国产清纯白嫩初高生在线播放视频 | 91久久精| 黄色国产在线播放 | 成人羞羞国产免费视频 | 久久尤物免费一区二区三区 | 国产在线观看一区二区 | 91色视频在线观看 | 一区二区av| 精品国产鲁一鲁一区二区张丽 | 国产wwwcom | 超碰在线免费av | 久久亚洲一区 | 国产精品999 | 国产成人精品在线 | 在线观看成人精品 | 日韩一区二区三区视频在线播放 | 国产伦精品一区二区三区精品视频 | 日日操视频 | 日韩午夜影院 | 国产日韩一区二区 | 美女国内精品自产拍在线播放 | 国产精品日韩在线观看 | 午夜视频在线观看视频 | 91久久精品一区二区二区 | 国产精品18久久久久久白浆动漫 | 精品国产乱码久久久 | 国产日韩精品久久 | 成人免费网站www网站高清 | 久久国产成人 |