享受代码,享受人生

SOA is an integration solution. SOA is message oriented first.
The Key character of SOA is loosely coupled. SOA is enriched
by creating composite apps.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2005年8月15日

摘要: 根据Program to interface的原理, 我们应该尽可能的使用接口而不是具体类. 因此在集合操作和算法中我们应该尽可能的使用ICollection和IList.象下面这样 public void ListAlogrithm(IList list) { //Do something to list } 而不是使用List 等等具体的... 阅读全文

posted @ 2005-08-15 20:28 idior 阅读(4802) 评论(4) 推荐(0) 编辑

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

posted @ 2005-08-15 20:28 idior 阅读(13653) 评论(12) 推荐(2) 编辑