Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transactions for Unreleated BO
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01362086
Message ID:
01363530
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform