久久久久久久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的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

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

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 是我的每個(gè)存儲過程嗎?

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 年我會,另外,我通常將事務(wù)范圍放在使用"塊中.

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

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

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

參見 這里

謝謝

這篇關(guān)于.NET TransactionScope 類和 T-SQL TRAN COMMIT 和 ROLLBACK的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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ù)級和存儲過程)
Should I call Parameters.Clear when reusing a SqlCommand with a transation?(重用帶有事務(wù)的 SqlCommand 時(shí),我應(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 和實(shí)體框架一起使用?(獲取多個(gè)同時(shí)連接...目前不
Why doesn#39;t TransactionScope work with Entity Framework?(為什么 TransactionScope 不適用于實(shí)體框架?)
主站蜘蛛池模板: 日韩国产在线 | 91精品国产91久久久久久吃药 | 国产精品成人一区二区三区夜夜夜 | 国产精品视频区 | 亚洲精品在线视频 | 亚洲精品乱码久久久久久蜜桃 | 瑞克和莫蒂第五季在线观看 | 日韩欧美在线观看视频 | 日韩一区二区三区在线 | 毛片视频观看 | 好婷婷网| 国产日韩欧美在线观看 | 成人国产精品免费观看 | 91欧美精品 | 最近最新中文字幕 | 日本三级电影免费观看 | 成人福利电影 | 午夜电影网| 中国一级特黄真人毛片 | 国产97在线 | 日韩 | 狠狠狠色丁香婷婷综合久久五月 | 成人性视频在线播放 | 九九九国产 | 欧美激情精品久久久久久免费 | 韩日在线 | 91精品麻豆日日躁夜夜躁 | 在线男人天堂 | 99精品国产一区二区三区 | 亚洲国产视频一区 | 色吧色综合 | 日韩中文字幕在线播放 | 韩国av电影网 | 日韩欧美三区 | 国产精品三级久久久久久电影 | 欧美成人在线免费 | 免费视频久久 | 91久久精品国产免费一区 | 精品亚洲一区二区三区 | 黄网站在线播放 | 91小视频在线 | xxxcom在线观看 |