Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddRequiredField Error provider
Message
From
02/09/2004 10:43:10
Max Fillmore
Essential Skills, Inc.
Lenexa, Kansas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00936642
Message ID:
00938758
Views:
27
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
Map
View

Click here to load this message in the networking platform