摘要:
在谈具体实现前 先介绍一下三种事务:1. 单对象单资源2. 多对象单资源3. 多对象多资源(分布式事务, 使用两段提交协议)在ADO.Net1.0下有两种使用Transaction的方法. 一种是在需要事务的对象中显式的调用事务处理, 还有一种是使用Enterprise Service的声明式的方法.第一种方法的示例代码如下: publicvoidTransactionTest(){stringc... 阅读全文
posted @ 2005-08-15 20:28 idior 阅读(13661) 评论(12) 推荐(2) 编辑