Chapter 2. Designing the Layered Architecture
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.
The Problem
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.
The Design
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.
Designing the Visual Studio Solution
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 ...
Get .NET Domain-Driven Design with C#: Problem – Design – Solution 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.