Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems saving a dataset
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01144324
Message ID:
01145014
Vues:
27
Linda,

>I understand what you're saying but I don't see how to apply it. I'm not passing any parameters in any of my code. Shouldn't the business object entity handle the data typing for bound objects? I'm using the default web business form save method, passing a dataset that has all the values to update the table. It looks like when the mmBusinessObject.SaveDataSet method checks for the primary key, if RetrieveAutoIncrement is false, the primary key is always set to null. Do I need to write an override method for this?

Gotcha...are you getting this error with all DataSets you are saving or just this one? If it's just this one, I recommend trying to create a custom data access class (as described in the MM .NET Dev Guide) to see if that fixes the problem.

Best 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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform