ASP.NET-MVC Framework Review (10)-build project framework based on three-tier architecture and MVC

Source: Internet
Author: User

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

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.