摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Collections;usingSystem.Data.Common;usingMicrosoft.Practices.EnterpriseLibrary.Data;usingSystem.Web;usingSystem.Threading;namespaceCustomized.Framework.Transaction{publicclassCustomizedTransactionScope:IDisposable{///<summar 阅读全文
posted @ 2012-10-25 23:52 chunchill 阅读(655) 评论(0) 推荐(1) 编辑
摘要: 同一个Scope里多个本地连接。先把官网上的代码贴过来://Thisfunctiontakesargumentsfor2connectionstringsandcommandstocreateatransaction//involvingtwoSQLServers.Itreturnsavalue>0ifthetransactioniscommitted,0ifthe//transactionisrolledback.Totestthiscode,youcanconnecttotwodifferentdatabases//onthesameserverbyalteringtheconnec 阅读全文
posted @ 2012-10-25 22:55 chunchill 阅读(1835) 评论(1) 推荐(0) 编辑