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:
01238707
Vues:
11
> IF they are registered as children of the main business object.

Does this mean that I should use the RegPrimaryBizObj method when registering the parent object (Obj1)? and not the RegisterBizObj method?


>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,
Govinda Berrio
GKG Inc.
Providence, RI
http://www.gkginc.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform