G
Guest
Hi,
Is there any reason to wrap a TableAdapter with a using statement? I don't
think there is any reason to but I found example code that did.
Thanks in advance!!!
using (TransactionScope updateTransaction = new TransactionScope())
{
using (MyTableAdapter adapter = new MyTableAdapter())
{
adapter.Update(reportsWatcherDs);
}
updateTransaction.Complete();
}
Is there any reason to wrap a TableAdapter with a using statement? I don't
think there is any reason to but I found example code that did.
Thanks in advance!!!
using (TransactionScope updateTransaction = new TransactionScope())
{
using (MyTableAdapter adapter = new MyTableAdapter())
{
adapter.Update(reportsWatcherDs);
}
updateTransaction.Complete();
}