Understanding DAL, BLL, and USL in ASP. NET)

Source: Internet
Author: User

1. Three-tier architecture
1. Presentation layer (USL): it mainly represents the WEB mode, or the WINFORM mode. If the logic layer is powerful and complete, the logic layer can provide complete services regardless of how the presentation layer is defined and changed.
2. Business logic layer (BLL): This layer is mainly used to operate on specific problems. It can also be understood as an operation on the data layer to process the data business logic. If the data layer is a building block, the logic layer is the building of these building blocks.
3. data access layer (DAL): mainly refers to the operation layer for raw data (in the form of storing data such as databases or text files), rather than raw data, that is, data operations, instead of databases, it provides data service 51 aspx for the business logic layer or presentation layer.

Ii. Differentiation
1. Presentation Layer: It mainly accepts user requests and returns data to provide client access to applications.
2. Business logic layer: it is mainly responsible for the operations on the data layer, that is, the combination of some operations on the data layer.
3. Data access layer: it mainly depends on whether your data layer contains logical processing. In fact, its functions mainly perform various operations on data files, without having to worry about other operations.
Iii. Summary
A layer-3 structure is a strictly hierarchical method, that is, the data access layer can only be accessed by the business logic layer, and the business logic layer can only be accessed by the presentation layer. Users send requests to the business logic layer through the presentation layer, the business logic layer completes the relevant business rules and logic, accesses the database through the data access layer to obtain data, and then returns the data in reverse order to display the data in the presentation layer. Some layer-3 structures also include other layers such as Factory and Model, which are actually an extension and application based on the layer-3 structure.

Related Article

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.