R
RP
I tried following code but it generates error at line (using .....):
Error 23 The type or namespace name 'TransactionScope' could
not be
found (are you missing a using directive or an assembly reference?)
===
Error 23 The type or namespace name 'TransactionScope' could
not be
found (are you missing a using directive or an assembly reference?)
===
Code:
========================================
private void cmdProceed_Click(object sender, EventArgs e)
{
using (TransactionScope scope = new TransactionScope())
{
GenerateAll();
// Commit the transaction.
scope.Complete();
}
}
=================================================