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

.NET TransactionScope 類和 T-SQL TRAN COMMIT 和 ROLLBACK

.NET TransactionScope class and T-SQL TRAN COMMIT and ROLLBACK(.NET TransactionScope 類和 T-SQL TRAN COMMIT 和 ROLLBACK)
本文介紹了.NET TransactionScope 類和 T-SQL TRAN COMMIT 和 ROLLBACK的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我目前正在編寫一個應用程序,該應用程序需要為我的業務實體進行多次插入、更新和刪除操作.我使用 TransactionScope 類來保證所有存儲過程都可以作為單個工作單元提交或回滾.

I am current writing an application that will require multiple inserts, updates and deletes for my business entity. I am using the TransactionScope class to guarantee all the stored procedures can commit or roll back as a single unit of work.

我的問題是,如果我在我的 .NET 類庫中使用 TransactionScope 類,我還需要使用 COMMIT TRAN 和 ROLLBACK TRAN 是我的每個存儲過程嗎?

My question is, I am required to also use COMMIT TRAN and ROLLBACK TRAN is each of my stored procedures if I am using the TransactionScope class in my .NET class library?

推薦答案

2005 年不需要,2000 年我會,另外,我通常將事務范圍放在使用"塊中.

ON 2005 its not necessary, on 2000 I would ,Also, i usually put the transactionscope in a "using" block.

與 2005 相比,在 2000 及更早版本上使用時存在一些性能問題.

There are some performance issues when using it on 2000 and older vs 2005.

參見 這里

謝謝

這篇關于.NET TransactionScope 類和 T-SQL TRAN COMMIT 和 ROLLBACK的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

SQL Server 2005 Transaction Level and Stored Procedures(SQL Server 2005 事務級和存儲過程)
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 的原因)
How do I use TransactionScope with MySql and Entity Framework? (getting Multiple simultaneous connections...are not currently supported error)(如何將 TransactionScope 與 MySql 和實體框架一起使用?(獲取多個同時連接...目前不
Why doesn#39;t TransactionScope work with Entity Framework?(為什么 TransactionScope 不適用于實體框架?)
主站蜘蛛池模板: 三级视频在线观看 | 黄色网址在线免费观看 | 欧美精品三区 | 羞羞网站入口 | 午夜精品一区二区三区在线播放 | 欧美亚洲国产精品 | 日韩视频一区二区三区 | 亚洲欧美另类在线 | 日本不卡中文字幕 | 日本在线网站 | 国产成人精品一区 | 欧美精产国品一二三区 | 欧美在线视频一区 | 99精品视频在线观看 | 中文字幕免费在线看线人动作大片 | 久久久国产一区二区三区 | 国产亚洲一区二区三区 | 欧美精品福利 | 欧美日韩在线视频观看 | 人人草人人 | 一区二区三区精品 | 日韩精品一二三 | 日韩毛片网站 | 老司机午夜免费精品视频 | 一级黄色小视频 | 国产免费一级片 | 成人深夜视频 | 亚洲视频一区 | 综合99 | 国产黄a三级三级看三级 | 99久热 | 欧美一区二区三区在线视频 | 国产小视频在线观看 | 亚洲啪啪网 | 黄色三级av | 乳色吐息樱花 | 中文字幕精品视频 | 亚洲人成免费 | www精品| 欧美视频一区二区三区 | 999精品在线 |