As our requirements for programming become more and more high, we are not just satisfied with the functionality of the software, we are increasingly focused on code reuse, ease of maintenance, program reliability and security.
Okay, nonsense, I'll just log in as an example to analyze the implementation of layer seven.
(a) Let's design the database first.
(ii) Project establishment and citation
在Visual Studio中建立机房重构项目。项目类型为Windows窗体应用程序 ,图解如下
Then in the establishment of U-layer, B-layer, D-layer, solid layer, appearance layer, factory layer, interface layer.
Build the project in addition to the U-tier as a Windows Forms application, the remaining layer project types are class libraries.
and set the U-Layer as the startup item.
The seven-storey design is as follows.
You will then need to add a U-layer reference to the entity layer and the appearance layer;
The reference of the façade layer to the B layer and the solid layer;
b Layer reference to the entity layer, the factory layer, the interface layer;
The reference of the factory layer to the interface layer;
Interface layer reference to the entity layer;
D-Layer references to interface layer and entity layer.
Reference diagram:
So the seven-tier development environment is set up, the next blog is how to design, how to code
Cond...
Teach you vb.net. Seven Layer design ideas (i)