| ||
In this chapter, we discussed the basic concepts and requirements for all business classes based on CSLA .NET. We discussed the life cycle of business objects, and walked through the creation, retrieval, update, and delete processes.
We then looked at the basic structure of our business classes. There are common elements, including making all the classes [Serializable()] , a common set of Region blocks for clarity of code, a private constructor, and having a nested Criteria class. There are also specific structures or templates for each type of business object, including the following:
Editable root
Editable child
Switchable object
Editable root collection
Editable child collection
Read-only object
Read-only collection
Name -value list
Using this background information and the basic class structures, we walked through the implementation of the classes for our "ProjectTracker" sample application. The end result is the ProjectTracker.Library assembly, which we'll use to create the Windows Forms, Web Forms, and web services interfaces in the next three chapters.
| ||