.ben
08-05-2006, 11:22 AM
Is there, or will there be, support for using the transactionscope instead of applying the [Transaction()] attribute?
public class SomeService
{
public void PerformSomething()
{
using(TransactionScope scope = new TransactionScope())
{
//perform some work in dao1
//perform some work in dao2
//calculate something
scope.Complete();
}
}
}
public class SomeService
{
public void PerformSomething()
{
using(TransactionScope scope = new TransactionScope())
{
//perform some work in dao1
//perform some work in dao2
//calculate something
scope.Complete();
}
}
}