Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HookPreSave not hooked with child/related save?
Message
 
 
To
13/08/2008 16:38:24
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01338239
Message ID:
01338781
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform