Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem saving with custom data access class
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00940287
Message ID:
00941209
Views:
15
Steven,

>It is definitely stored and is not null. I can write the row to XML before the call to MyUpdate and it contains the original values. Spellings also all match. I've checked the value and type of the session variable as well as "probed" it to make sure that it was what I wanted there.

You posted this code previously:
public void MyUpdate(DataSet ds, string tableName)
{
   mmDataAccessBase dao;
   dao = this.GetDataAccessObject();
   
   if (this.SaveDataSet(ds, this.TableName) == OakLeaf.MM.Main.Business.mmSaveDataResult.RulesPassed)
   {
      return;
   }
   return;
}
If you step through this code is "dao" null or does it contain a reference to your custom data access class? If this doesn't provide a clue to what's going on, I recommend:

1. Set a breakpoint in your custom data access class to see if it ever hits the breakpoint

2. If all else fails, step through the MM .NET source code. Check out the MM .NET Dev Guide topic "Stepping through MM .NET code in the Debugger" for information on how to do this. You can open the mmBusinessObject.cs file in VS .NET (with your project already open) by clicking the Open button and navigating to the MM .NET source code directories.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform