Asp. NET create a three-tier architecture diagram in detail tutorial

Source: Internet
Author: User

1. New Project

2. Create a Visual Studio solution

3. Re-create the project

4. Select the class library type

5. Create the BLL (business Logic layer), DAL (data access Layer) and model (also called the physical layer)

6. Add a website

7. Select 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 DAL

13. Select Model Reference

14. Take a look

15. The Dal can also refer to other class libraries, such as dbutility

16. Database Help Class Library

17. Model does not refer to any class library

18. The underlying class library is referenced in the upper class library

19. Web Add Reference

20, the web layer to refer to the BLL, model class library

21, of course, you can also quote all over

22, using the BLL layer to operate

23. Web. config metabase link string

24. Read the database link in the Dbutility Layer database helper class to manipulate the data

Summary: Layer three is generally web (attempt layer), BLL (business logic layer), DAL (data access layer), reference order is Web reference BLL,BLL reference Dal, and in the middle there is a model (layer of models) as the medium for hosting data for the three layers referenced above.

Asp. NET create a three-tier architecture diagram in detail tutorial

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.