Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't run query from inside a transaction?
Message
 
To
03/09/2004 21:19:58
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00938776
Message ID:
00939974
Views:
31
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform