Recently, I am looking at the three-tier architecture. Now, I want to be a three-layer trainer about student information.
I searched for the method for establishing a layer-3 architecture on the Internet. If you think there is a mistake or a better method than this, I hope I can help my younger brother.
Let's take a look at the three layers.
Database access layer (DAL): database access layer
Business logic layer (BLL): business logic layer
User Interface Layer (UIL)
The data access layer mainly provides functions for database operations (addition, deletion, modification, and query. The business logic layer calls the functions provided by the database access layer. The user presentation layer is the interface we usually see. The user performance Layer calls the business logic layer, while the business logic layer calls the data access layer. The user performance Layer cannot call the data access layer.
1. Open vs2005 and create a new project-> other project types-> Visual Studio solution-> blank solution. Enter the solution name (school) and its location and click "OK.
2. Open Solution Explorer and right-click the solution Name> new project. The project type is your language. In the template box on the right, select the class library and name it Dal. In the same way, create a new project named BLL and then create an ASP.. Net website named UIL.
3. Add project BLL references to project dal and UIL references to BLL. In resource management, right-click Project name-> Add reference. In the displayed dialog box, select the project tab, select an appropriate project, and click OK.
================