Module Classes
As you will recall fromChapter 6, the CSK divides the middle layer of each module into three distinct categories:
Components: Contain classes used by the CSK for database access and the classes used to represent module content (that is an article or a book).
Content: Includes the code-behind classes, which the CSK will attach to a skin for presentation. These classes move the information from component classes to the screen (when retrieving content), and from the screen into the component classes (when adding and editing content).
Controls: Contain classes representing web controls, which render content attributes (title, description, date posted) in a web form.
The CSK solution file keeps each category in a separate directory. For articles, the directories are Engine\Modules\Articles\Components, Engine\Modules\Articles\Content
, and \Engine\Modules\Articles\Controls
.
Components
The following diagram is very similar to the database schema shown in the beginning of the chapter...