Asp. NET to create a three-tier architecture diagram Detailed Tutorial _ Basic Application

Source: Internet
Author: User

1. New Project

2. Create a Visual Studio solution

3, then create the project

4. Select Class Library Type

5, in turn, create BLL (business logic layer), DAL (data access Layer) and model (models layer can also be called solid layer)

6. Add a website

7, choose the appropriate type

8, modify the name

9. Set as Startup Project

10. The structure is as follows

11. Generate model

12, Reference Model in the DAL

13. Select Model Reference

14, look at

15, the Dal can also refer to other classes of libraries, such as dbutility

16. Database Help Class Library

17, model does not refer to any class library

18, the underlying class library in the upper class library is referenced

19. Web Add Reference

20, the Web layer to reference BLL, model class library

21, of course, you can also quote all over

22, using the BLL layer to operate

23. Web.config configuration Database link string

24, Dbutility Layer database auxiliary class to read the database link to manipulate the data

Summary: Three layer is generally the web (attempt layer), BLL (business logic layer), DAL (data Access layer), the reference order is the Web reference BLL,BLL reference Dal, the middle also has a model (models layer) as the host data media, for the above three layer reference.

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.