General information
Category:
The Mere Mortals Framework
Hi Robert,
>I like the idea of the BizRulesMethod but a question: Do all rules fire when checking for the delete condition?
No, and actually we didn't want them all to fire. What we did was to insert code in the Delete method of our base BizObj class that makes a call to our base BizRule class to a method we created called CheckDeletedRules() before the delete is issued. If it encounters broken rules as a result of the check, we return back out of the delete gracefully. This way, it allows us to only check our delete rules when a delete is done, and the rest when a save is done. Please let me know if I can be of any assistance.
Thanks,
Brian
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