Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tips on parent-child bizobj to share db transaction
Message
De
05/07/2007 13:16:48
 
 
À
03/07/2007 18:26:41
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01235772
Message ID:
01238005
Vues:
15
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform