Since I have decided that the application architecture will use a layered approach, it is time to create the Visual Studio solution to host these layers.
In order to implement the layered approach correctly, there are some steps that I will need to follow:
The Visual Studio solution must be organized make it very obvious where the layers have been implemented in the code modules.
Each individual layer needs to be designed as well, and needs to include the design patterns and technologies for each layer.
I need to decide what functionality belongs in each of the layers.
An application framework needs to be built that will simplify coding the application.
In this chapter, there are two main items that need to be designed, and those items are the Visual Studio solution and the actual architectural layers of the SmartCA application.
As stated earlier, the first step in implementing the layered architecture is to create a Visual Studio solution that will support the approach.
The initial skeleton for the solution will hold four projects, one for each layer of the application. Figure 2.1 below shows this initial design.
Figure 2.1. Initial code skeleton design.
The first three projects in the solution are basic C# Class Library projects, and the last project, SmartCA.Presentation, is actually a ...