Am I using TransactionScope and DataContext properly?
问题 What if I new up some DataContexts, read some data, and then only wrap the SubmitChanges in a TransactionScope? string conn1 = GetConn1(); string conn2 = GetConn2(); using (DataContext1 dc1 = new DataContext1(conn1)) { List<Customer> customers = ReadSomeData(dc1); ModifySomeCustomers(customers); //performs local modification to Customer instances using (DataContext2 dc2 = new DataContext2(conn2)) { List<Order> orders = ReadSomeData(dc2); ModifySomeOrders(orders); //performs local modification