摘要: TransactionScope是的.net Framework2.0版本中增加的一个新命名空间。他的用途是为数据库访问提供一个“轻量级”的事物。使用时要添加System.Transactions.dll的引用示例代码如下:using(TransactionScope scope = new TransactionScope()){  //Query  using(SqlConnection conn = new SqlConnection(connString))  {    SqlCommand cmd = new SqlCommand(sqlQuery,conn);    conn.op 阅读全文
posted @ 2011-01-21 15:05 李帅斌-Memory 阅读(739) 评论(0) 推荐(1) 编辑