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

TransactionScope:它變得更好了嗎?

TransactionScope: Has it gotten better?(TransactionScope:它變得更好了嗎?)
本文介紹了TransactionScope:它變得更好了嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

當(dāng) TransactionScope 首次出現(xiàn)時,我遇到了一些嚴(yán)重的問題,以使其在我的開發(fā)機(jī)器 (XP) 和我們的數(shù)據(jù)庫服務(wù)器 (Windows Server 2003) 之間工作.

When TransactionScope first came out, I ran into some serious issues getting it to work between my dev machine (XP) and our database server (Windows Server 2003).

當(dāng)我深入研究它時,這似乎是一個棘手且普遍的問題,有可能成為生產(chǎn)中的一個頭疼問題,所以我決定不以這種方式處理事務(wù)(盡管我非常喜歡這種語法并且我真的很想讓它工作).

When I looked into it more, this appeared to be a tricky and widespread issue that had a chance of becoming a headache in production, so I decided not to handle transactions this way (even though I like the syntax a lot and I really wanted it to work).

這些問題是否仍然存在,或者使用起來是否安全?你現(xiàn)在經(jīng)常使用它沒有問題嗎?

Are these problems still out there or is this safe to use? Do you use this regularly now without issues?

非常感謝!

注意:已經(jīng)很久了,但我認(rèn)為這個問題與 Distribute Transaction Coordinator 有關(guān).我擺弄了很長時間,但始終無法讓它發(fā)揮作用.

Note: It has been a long time now, but I think the issue had something to do with Distribute Transaction Coordinator. I fiddled with it for a long time and was never able to get it working.

推薦答案

Rick Strahl 有一篇關(guān)于事務(wù)范圍和 LINQ to SQL 的精彩博文 此處.它的上下文更像是 LINQ to SQL,但我認(rèn)為有一些適用的原則可以幫助您解決問題.

Rick Strahl has a great post about transaction scope and LINQ to SQL here. Its context is more LINQ to SQL, but I think that there are some principles that apply which could help you solve your question.

為了更具體地回答您的問題,以下是 Strahl 對 TransactionScope 的看法:

to more specifically answer your question, here's what Strahl has to say about TransactionScope:

傳統(tǒng)上 TransactionScope 是一個圍繞分布式事務(wù)協(xié)調(diào)器 (DTC) 的 .NET 包裝器,但它的功能有所擴(kuò)展.一個問題是 DTC 在資源使用方面相當(dāng)昂貴,并且它要求 DTC 服務(wù)實際運行在機(jī)器上(另一個服務(wù)在客戶端安裝時特別麻煩).

Traditionally TransactionScope was a .NET wrapper around the Distributed Transaction Coordinator (DTC) but it’s functionality has expanded somewhat. One concern is that the DTC is rather expensive in terms of resource usage and it requires that the DTC service is actually running on the machine (yet another service which is especially bothersome on a client installation).

但是,最近對 TransactionScope 和 SQL Server 客戶端驅(qū)動程序的更新使得可以使用 TransactionScope 類及其提供的易用性,而無需 DTC,只要您針對單個數(shù)據(jù)庫運行并使用單個一致的連接字符串

However, recent updates to TransactionScope and the SQL Server Client drivers make it possible to use TransactionScope class and the ease of use it provides without requiring DTC as long as you are running against a single database and with a single consistent connection string

這篇關(guān)于TransactionScope:它變得更好了嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

SQL Server 2005 Transaction Level and Stored Procedures(SQL Server 2005 事務(wù)級和存儲過程)
Yield return from a try/catch block(try/catch 塊的收益回報)
Should I call Parameters.Clear when reusing a SqlCommand with a transation?(重用帶有事務(wù)的 SqlCommand 時,我應(yīng)該調(diào)用 Parameters.Clear 嗎?)
Does SqlTransaction need to have Dispose called?(SqlTransaction 是否需要調(diào)用 Dispose?)
Reason for System.Transactions.TransactionInDoubtException(System.Transactions.TransactionInDoubtException 的原因)
How do I use TransactionScope with MySql and Entity Framework? (getting Multiple simultaneous connections...are not currently supported error)(如何將 TransactionScope 與 MySql 和實體框架一起使用?(獲取多個同時連接...目前不
主站蜘蛛池模板: 人人干人人艹 | 日韩精品一区二区视频 | 欧美精品一区二区三区四区 | 欧美精品二区三区四区免费看视频 | 亚洲人高潮女人毛茸茸 | 亚洲高清毛片一区二区 | 亚洲欧美视频在线 | 老司机免费福利视频 | 久久久久久久久国产精品 | 久久精品小视频 | 日本不卡视频在线观看 | 亚洲综合在线视频 | 国产免费av网站 | 日韩精品大片 | 激情网站在线观看 | 国产在线一 | 亚洲成肉网| 狠狠操av| 精品在线看 | 欧美综合在线视频 | 色资源在线 | 国产suv一区二区 | 日韩欧美中文 | 亚洲视频免费观看 | 国产呦小j女精品视频 | 午夜av在线播放 | 日本一级淫片 | 久久久久久av | a亚洲天堂 | 羞羞的视频在线观看 | 日韩 欧美 亚洲 | 天天色天天 | 精品网站999www| 欧美日韩精品久久久免费观看 | 狠狠的操 | 91午夜精品亚洲一区二区三区 | 亚洲视频免费观看 | 国产精品久久久久久精 | 欧美亚洲在线 | 国产欧美一区二区三区视频在线观看 | 国产日韩欧美精品 |