Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transactions for Unreleated BO
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01362086
Message ID:
01363530
Views:
11
Jayesh,

>I understand how MM.Net handles database transaction processing for related business objects such as parent, child, grandchild.
>
>How do I initiate transaction shared by multiple unreleated BO?
>
>I was hoping to have something like SetCurrentTransaction() method on BO to pass on transaction created by Page or a Process. Or May be I create a Process Object which lets all it's participating BO share same transactions, regardless of them being related to each other or not.

Honestly, the absolute easiest way is to register them as children, etc. even if they aren't normally related in this manner--that way all transaction processing is handled for you. Alternately, check out the MM .NET Dev Guide topic "Working with Transactions". It shows you how to manually handle transactions. You can also manually register one object to handle transactions with another object by doing something like this:
parentObj.TransactionStateChange +=
	new mmTransactionStateChangeDelegate(childObject.TransactionStateChangeHandler);
Best 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
Reply
Map
View

Click here to load this message in the networking platform