Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tips on parent-child bizobj to share db transaction
Message
De
26/06/2007 14:11:01
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Tips on parent-child bizobj to share db transaction
Divers
Thread ID:
01235772
Message ID:
01235772
Vues:
47
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform