1. Three modes of comparison
I. MVC framework (for large projects)
1.V View (Web page section)
2.M Models (business logic + data access + entity classes)
3.C Controller (between M and V, plays a guiding role)
Two or three-tier architecture
1.UI (Web page, form)
2.BLL (business logic, only logic code, no data access code)
3.DAL (data access, Access data source)
Models (Entity class: Used to encapsulate data, which is the carrier of data)
Three or three-tier architecture +mvc
V
C
M (BLL +dal+models)
Three-tier architecture +MVC combined Application Mode
2. Three-tier architecture +MVC portfolio development Steps:
(1) Creating an MVC Project
Open vs-> file-new Project->mvc4 Project---template temporarily select empty (after doing project General selection Basic) view temporarily select ASPX
(2) Add model layer (BLL\DAL\MODELS)
(Note that the model layer is a layer of models and models is the entity Class)
Right-click Solution-> Add New Project --Select Class Library->bll\dal\modles
ASP.NET-MVC Framework Review (10)-build project framework based on three-tier architecture and MVC