Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling errors/warnings from the data access layer save
Message
De
23/09/2005 16:01:01
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Handling errors/warnings from the data access layer save
Versions des environnements
Environment:
C# 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01052549
Message ID:
01052549
Vues:
62
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
Fil
Voir

Click here to load this message in the networking platform