Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Practice for handling transactions in Mere Mortals.
Message
From
04/08/2009 09:05:42
Tegron Tegron
Platinum Technologies
Ohio, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Best Practice for handling transactions in Mere Mortals.
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01416042
Message ID:
01416042
Views:
98
What is the best practice for using transactions in Mere Mortals? I read the information on transactions in the developer guide, and I tried implementing it before with some issues. I don't recall exactly the problem, but I know that I was having problems with it saving the children before when I tried using it. I had two tables (a parent and a child). I had the parent basically instantiating the child like in the doc. I had AutoSaveOnParentSaved set, and I remember an error being thrown this way.

I am at the stage of having to use this scenario again, and I would like to wrap these into a transaction. Basically I am reading in information from a file that contains check payment information. The header contains the total amount of each line item. The line items detail how the check was split. I am reading this information into two tables. I want it to be a transaction, so if it fails everything will rollback. I would like suggestions as to how I should implement this using business objects from a best practice standpoint.
Next
Reply
Map
View

Click here to load this message in the networking platform