用C#在asp.net中的三层和mvc应用程序有什么区别 [英] what is the difference between three tier and mvc application in asp.net with c#

查看:126
本文介绍了用C#在asp.net中的三层和mvc应用程序有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



使用C#在asp.net中的三层和mvc应用程序有什么区别?

如何使用C#在ASP.NET中开发MVC应用程序?
请向我发送结构和代码.

问候,
Purnananda Behera

Hi,

what is the difference between three tier and mvc application in asp.net with c#?

How to develop mvc application in asp.net with c#?
please send me the structure and code.

regards,
Purnananda Behera

推荐答案

检查此链接

http://stackoverflow.com/questions/698220/mvc-vs-n -tier-architecture
check this link

http://stackoverflow.com/questions/698220/mvc-vs-n-tier-architecture


每个应用程序都有一个或多个闲置层


1)表示层或UI层
2)业务层或业务逻辑层
3)数据访问层或数据层

编译项目时,我们将获得相应的DLL



如果我们在自己的机器中部署所有DLL,则称为1层

如果我们在一个机器中部署一个DLL,在另一个机器中部署另外两个,则称为2层
这三个在不同的机器上,则被称为3层


有时我们需要更多上述类型的层和更多机械,然后称为n层


MVC意味着模型View Controller Web技术具有自己的MVC Java(jsp)具有与ASp.net类似的MVC具有其MVC ASP.NET MVC Framework,它允许软件开发人员基于轻松的角色来构建应用程序Model View Control

我们要在哪个模型上构建模型

视图表示应用程序的用户界面

控制是指控制应用程序的逻辑
Every Application has one are more of fallowing Layers


1)Presentation Layer or UI Layer
2)Business Layer or Business Logic Layer
3)Data Access Layer or Data Layer

When we compile the project we get the respective DLL



if we deployee all the DLL in our own mechine it is called as 1 tier

if we deployee one DLL in one mechine and the other two in other mechine it is called as 2 tier
it three are in different mechines then it is called as 3 tier


some times we requires more layers of the above type and more mechines then it is called as n tier


MVC means model View Controller web technologies have their own MVC java (jsp) has its MVC like ASp.net Has its MVC ASP.NET MVC Framework it allows software developers to build applications based on fallowing roles Model View Control

Model on which model we wanted to build

View means UI of the Application

Contol Means the logic Which controls the Application


以上答案应该可以帮助您了解三层体系结构和MVC.

这是一个以 MVC 开头的CodeProject文章.

学习MVC(模型视图控制器)在7天内(第1天)分步进行
Above Answers should help you to understand about Three-Tier Architecture and MVC.

Here is a CodeProject Article to begin with MVC.

Learn MVC (Model view controller) Step by Step in 7 days – Day 1


这篇关于用C#在asp.net中的三层和mvc应用程序有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆