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.