Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Handling errors/warnings from the data access layer save
Versions des environnements
Network:
Windows 2000 Server
Hi - We're overriding the SaveDataSet method of the SQL data adapter so that we can call a web service to save the data.
I've worked out getting error messages back and dumping them into the business rules object, but I can't seem to find a way to tell business object's SaveDataSet method that something went wrong (like when the pre-processing rules fail). The return value is just a row count.
The only way I can see to stop the rest of the save from processing is to throw an exception. I'm thinking there must be a better way that I'm not aware of.
Also, even though I populate the rules object, I don't get the popup from the business form alerting the user that there were errors (the red x's do show in the grid though).
This sounds like the same type of behavior that using stored procedures containing business logic would produce, so I'm hoping someone has solved this already.
Any help would be appreciated.
Thanks!
Jeff
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement