|
using System.Transaction;
xxxTableAdapter xxxTA = new xxxTableAdapter ();
using (TransactionScope ts = new TransactionScope)
{
xxxTA.Insert ("aa", "bb", "cc");
xxxTA.Update ("dd", "ee", "mm", "cc");
ts.Complete (); // Complete the transaction, write on success, or roll back automatically
}
Switch to .net 2.0. Convenient |
|