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