Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Object Clears rules when AutoClearRules = false
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01325495
Message ID:
01326416
Views:
25
Brian,

>I didn’t say anything about auto check rules. What I'm describing is the AutoClearRules and the fact that the rules are being cleared regardless of its setting in certain situations. My 1st post describes when the framework ignores this setting. Since it only clears the rules in certain scenarios I’m assuming that this is a bug.

Sorry, that was a typo on the property name...everything I said was correct:
The AutoClearRules property was specifically designed to determine if rules are cleared before CheckRules() is executed. However, CheckRules() is also called in a few other places:

CancelTableRows()
CancelEntityList()
PreSaveProcessing()
PreSaveEntityListProcessing()
PreSaveEntityProcessing()

It sounds like you want AutoClearRules to also apply in the “Save” methods…is that right?
If you look the documentation for AutoClearRules it specifically says:

// Specifies if broken rule and warning collections are cleared
// before running CheckRules

We *could* change it so rules are never automatically cleared at the Framework level...I'm afraid we may wreak havoc on someone's code who is expecting it to behave as advertised--pondering...

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform