|
-
Dec 14th, 2009, 11:45 AM
#11
Re: Constructive Criticism
 Originally Posted by mendhak
You need to call myScope.Complete() just before the End Using. That commits it. If you don't call it, it will rollback.
using(TransactionScope scope = new TransactionScope())
{
//blah blah
//blah blah blah blah
scope.Complete();
}
But the problem she is facing is just the opposite. Means whether scope.Complete is called or not, transaction is always committed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|