Chapter 11. Business and Validation Rules
I've now walked through several aspects of the CSLA .NET implementation, including an overview of the framework, base classes, property declarations, object status management, parent-child relationships, and data binding.
This chapter will focus on how CSLA .NET supports business and validation rules in a standardized manner. In several previous chapters, I've made reference to the framework's support for business and validation rules. The rules are invoked when a property is set on an editable business object through the SetProperty()
helper method. The business developer can also invoke the rules by explicitly calling the CheckRules()
method of the ValidationRules
object.
As validation rules are broken ...
Get Expert C# 2008 Business Objects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.