>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