Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddRequiredField Error provider
Message
De
02/09/2004 10:43:10
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00936642
Message ID:
00938758
Vues:
26
Kevin,

This is related to this thread so:

Why is it that mmBusinessRules.CheckRules() call CheckRulesHook() BEFORE calling CheckRequiredFields()?

// Call custom business object rules hook method
this.CheckRulesHook(ds, tableName);

// Check required fields
this.CheckRequiredFields(ds, tableName, useErrorProvider);

It seems that you would want to make sure that the required fields have values before you start comparing these values to something. I find my self writing code in my CheckRulesHook() overload to make sure my fields have values before I test them for range or uniquness. Wouldn't it be better to reverse these two? Then in CheckRulesHook() I could assume that all fields marked Not Null in the database would have a value.

Max...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform