Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Transactions
Message
 
To
26/05/2004 10:25:51
Ali Ozmez
Galaksi Bilgisayar
Ankara, Turkey
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00907353
Message ID:
00907732
Views:
9
>We have a problem with transactions. We have a Windows Form class which has 2 private business objects, say A and B. There is a parent-child relationship between the 2 (say A is parent, B is child). Then we have the following code where we have a transaction involving these 2 business objects abstracted as follows:
>
> SomeMethod() {
> A.TransactionStart();
> Try {
> // Some DB operations
> B.SomeOtherMethod(); // involves DB operations
> A.TransactionCommit();
> }
> Catch (...) {
> ...
> A.TransactionRollBack();
> }
>
>When we execute this code, the transaction times out, it does not complete. Can you tell us the problem here?

If you step through the code at what point does the error occur? Can you post the exception details?

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform