What is a three-layer structure in asp.net

Source: Internet
Author: User

One or three-tier architecture

1. Presentation layer (USL): The main means of the web way, can also be expressed as a WinForm way. If the logic layer is very strong and perfect, the logic layer can provide services perfectly regardless of how the presentation layer is defined and changed.

2. Business Logic Layer (BLL): Mainly for the operation of specific problems, can also be understood as the operation of the data layer, the data business logic processing. If the data layer is a building block, the logic layer is the building of these blocks.

3. Data access Layer (DAL): Mainly to the original data (database or text files, such as the form of data storage), rather than the original data, that is, the operation of the data, rather than the database, specifically for the business logic layer or presentation layer to provide data services.

Ii. Specific Distinctions

1. Presentation layer: The primary acceptance of the user's request, as well as the return of the data, providing the client with access to the application.

2. Business Logic Layer: mainly responsible for the operation of the data layer, that is, some data-tier operations are combined.

3. Data access layer: Mainly look at your data layer contains no logical processing, in fact, his functions mainly complete the operation of the data file, without the need for other operations.

Third, summary

A three-tier structure is a rigorous layered approach, that is, the data access layer can only be accessed by the business logic layer, the business logic layer can only be accessed by the presentation layer, the user transmits the request to the business logic layer through the presentation layer, the business logic layer completes the relevant business rules and logic, and accesses the database through the data access layer to obtain data Then, in reverse order, return the data to the presentation layer

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.