Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't run query from inside a transaction?
Message
 
À
03/09/2004 21:19:58
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00938776
Message ID:
00939974
Vues:
37
Max,

>So I'm guessing that I could override HookParentTransactionBegin() in my parent business object and store the handles passed in the eventarg somewhere with global scope. Then in the CheckRulesHook of my child rules object I would need to retrieve the connection handle and use it when executing my query. I have no clue how to do that.

If you want to store information that is globally accessible, you can create a static field or property in which to store the information. For example:
public class MyClass
{
   public static mmBusinessStateChangeEventArgs TrxEventArgs;
}
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform