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