Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tips on parent-child bizobj to share db transaction
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01235772
Message ID:
01238707
Views:
12
> 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform