Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tips on parent-child bizobj to share db transaction
Message
From
05/07/2007 13:16:48
 
 
To
03/07/2007 18:26:41
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01235772
Message ID:
01238005
Views:
16
Hi Bryan,

The child objects are showing some behavior that indicates they are aware of the relationship with the parent. They are picking up the parent's primary key and populating their foreign key fields. But I tried your suggestion and I had the same problem.

Now I think the problem I'm having is that it seems like the child objects' datasets are not picking up the values from the bound controls on the page. So the parent saves, but when the children attempt to save their datasets, it gets canceled because their datasets are null.



>Hi Govinda,
>
>
>> protected void Page_Load(object sender, EventArgs e)
>> {
>> this.oStates = (StateNames)this.RegisterBizObj(new StateNames());
>>
>> this.oObject1 = (Object1)this.RegisterBizObj(new Object1());
>> this.oObject3 = (Object3)this.RegisterBizObj(new Object3());
>> this.oObject2 = (Object2)this.RegisterBizObj(new Object2());
>>
>> this.oObject1.RegisterChildBizObj(oObject2);
>> this.oObject1.RegisterChildBizObj(oObject3);
>>
>>
>
>Does the Object1 need to be registered as the primary biz object in order for the children to know who they are children of?
>
>this.oObject1 = (Object1)this.RegisterPrimaryBizObj(new Object1());
Govinda Berrio
GKG Inc.
Providence, RI
http://www.gkginc.com
Previous
Reply
Map
View

Click here to load this message in the networking platform