How to Build the initial three-tier architecture

Source: Internet
Author: User

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.

================

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.