Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tips on parent-child bizobj to share db transaction
Message
From
26/06/2007 14:11:01
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Tips on parent-child bizobj to share db transaction
Miscellaneous
Thread ID:
01235772
Message ID:
01235772
Views:
48
Hi,

This is my first post for support on this form. Unfortuately I don't have a paid registration, so I can't search to see if there were ever any posts on this topic.

I have a form where the user creates an account and the fields are mapped to 3 different related tables (for example: User, UserSettings, UserContactInfo). When I handle the submit on this form, I need to start a transaction attempt to insert the User row, then UserAddress and UserSettings, but if there are any broken rules rollback all insert attempts.

I tried following the MM.net developer guide with no luck. I specified the Foreign Key in the child object and set AutoSaveOnParentSave to true. The UserID was never populated in the child tables.

Can someone please post any advice or tips on setting this up? I would greatly appreciate it.

If you would like to see some of my code let me know an I'll provide.

Thank You,

Govinda Berrio
GKG Inc.
East Providence, RI
Govinda Berrio
GKG Inc.
Providence, RI
http://www.gkginc.com
Next
Reply
Map
View

Click here to load this message in the networking platform