General information
Category:
The Mere Mortals .NET Framework
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...
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only