开发者

Difference between mysqltransaction object (mysql) and transactionscope object (asp.net)

Can you guys tell me the difference between the开发者_如何学Gose two objects? Thanks!


A MySqlTransaction is a MySQL specific implementation of System.Data.IDbTransaction, that is it represents a transaction in a MySQL database.

TransactionScope is used to make blocks of code, not just database calls, transactional.

The TransactionScope will enlist the MySqlTransaction as part of a larger transactional code block so you can perform some database writes and other things as part of the transactionscope and either they will all be committed or they will all be rolled back.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜