久久久久久久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 的原因)
主站蜘蛛池模板: 国产亚洲精品成人av久久ww | 国产亚洲欧美在线视频 | 久久这里有精品 | 免费av观看 | 国产精品1区2区3区 国产在线观看一区 | 亚洲在线一区 | 久久精品亚洲国产奇米99 | 日本不卡一区二区三区 | 网黄在线| 黄色大片免费网站 | 在线观看日韩精品视频 | 日本不卡一区 | av网站在线播放 | 色吧色综合 | 九七午夜剧场福利写真 | 午夜精品一区二区三区在线视 | 日韩一区二区在线观看视频 | 欧美一区二区另类 | 欧美电影一区 | 成人夜晚看av| 免费黄色片在线观看 | 免费1区2区3区 | 精品久久久久久中文字幕 | 欧美一级二级视频 | 国产精品久久久久影院色老大 | 一级国产精品一级国产精品片 | 亚洲精品视频一区二区三区 | 成人国产精品久久久 | 欧美激情一区 | 欧美日韩一二三区 | 欧美一区二区三区在线播放 | 欧美激情久久久 | 自拍偷拍一区二区三区 | 免费同性女女aaa免费网站 | 精精国产视频 | 日韩精品在线看 | 日韩av一区二区在线观看 | 精品视频国产 | 亚洲一区二区三区免费 | 伊人天堂网 | 日韩在线播放网址 |