Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HookPreSave not hooked with child/related save?
Message
De
12/08/2008 00:56:54
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
HookPreSave not hooked with child/related save?
Divers
Thread ID:
01338239
Message ID:
01338239
Vues:
68
Hi,
just wondering if anyone could confirm the HookPreSave works when saving a child record. I have a HookPreSave(DataTable dt) in my childobject.partial, which works fine for other objects just not either of my child objects (I have two different forms saving master and child, both childs don't call this routine). I have done the RegisterChildBizObj and EntityCentric is false.

For s&g in the sample app I added
protected override bool HookPreSave(DataTable dt)
{
   Console.WriteLine("in parent hps");
   return base.HookPreSave(dt);
}
to Order.Partial.cs

and
protected override bool HookPreSave(DataTable dt)
{
   Console.WriteLine("in child hps");
   return base.HookPreSave(dt);
}
to OrderDetail.Partial.cs

then added an order detail and modified the order, as expected I saw 'in parent hps' but not 'in child hps'.

thanks,
-Larry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform