Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HookPreSave not hooked with child/related save?
Message
 
À
13/08/2008 16:38:24
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:
01338239
Message ID:
01338781
Vues:
12
Indeed I found it in mmBusinessObject.cs... and this method HookPreSave(DataTable dt) is called only from

PreSaveProcessing(DataSet ds, string tableName) - even located in mmBusinessObject.cs

I made some "research" into this... (BTW - I'm using the MM .Net 3.5 - latest updates).... and it's true...

the HookPreSave is not called for the child objects !!!

Calling Kevin for Q: Is this by intention?...

-----

In mmBusinessObject.cs -

function PreSaveProcessing(DataSet ds, string tableName)
{
if (!this.RulesCheckedByParent) //... on line 5111
{
...
Result = this.HookPreSave(ds.Tables[tableName]);
.....
{
return true;

So when the child objects are called for saving, the Rules has being checked by parents, RulesCheckedByParent is set to true and the HookPreSave is not called at this time...
---------------------------
Maurizio Domba
CRON d.o.o. Rovinj, Croatia
http://wanip.info
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform