Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tips on parent-child bizobj to share db transaction
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01235772
Message ID:
01238145
Vues:
13
Govinda,

>If I use this.Save(oObj1, dsObj1, oObj1.TableName) will the child objects' datasets also bind back with the page's controls? If not how should I make sure that the child datasets contain the data from the controls before calling Save with the parent object?

If you have bound the child business object's to your web UI controls they will automatically bind back IF they are registered as children of the main business object. The business rules are automatically checked before any transaction is started (to keep the transaction window as short as possible). When the business objects are registered as children they automatically get the Save notification (if their AutoSaveOnParentSaved property is true) and their business rule checking automatically fires.

Best 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