>
>Say, I do want a transaction and I do want everything to happen, but at the end, I don't want to commit it. Do I simply omit scope.Complete() and expect it will be rollbacked at the end of the using statement?>
>Yes, if there is no scope.Complete(), then it all gets rolled back!
>
>~~Bonnie
BTW, getting this error
Error 1 'IsolationLevel' is an ambiguous reference between 'System.Data.IsolationLevel' and 'System.Transactions.IsolationLevel' C:\Dev\Siriusware.Middleware\TestProject\BookingsTests.cs 2337 140 TestProject
Error 2 Cannot implicitly convert type 'System.Data.IsolationLevel' to 'System.Transactions.IsolationLevel'. An explicit conversion exists (are you missing a cast?) C:\Dev\Siriusware.Middleware\TestProject\BookingsTests.cs 2337 140 TestProject
I guess I need to add the full reference to the isolationlevel.
If it's not broken, fix it until it is.
My Blog