摘要:
之前开发.net 系统喜欢用ado.net 的事务,偶然间发现.net 中有system.transaction命名空间。里面的transaction事务更好用。首先我们要引用.net 命名空间中的System.Transactions;一般的写法是:// Create the TransactionScopeusing (TransactionScope ts = new TransactionScope()){ using (SqlConnection cn2005 = new SqlConnection(someSql2005)) { SqlCommand cm... 阅读全文
posted @ 2012-05-15 17:38
庸蛹
阅读(564)
评论(0)
推荐(0)
浙公网安备 33010602011771号