.net中MVC和3层架构的区别 [英] Difference between MVC and 3 tier Architecture in .net

查看:77
本文介绍了.net中MVC和3层架构的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在.net中MVC和3层架构之间是否存在差异?在设计应用程序时哪个更好

?2

解决方案

< blockquote>你可以阅读以下链接

http://www.c-sharpcorner.com/blogs/6446/difference-between-mvc-and-3-tier-architecture.aspx [ ^ ]

http://www.dotnetexpertsforum。 com / difference-between-3-tier-architecture-and-mvc-in-asp-net-t1496.html [ ^ ]


每个申请ation有一个更多的关注层

1)表示层或UI层

2)业务层或业务逻辑层

3)数据访问层或数据层



3层架构通常有每个层由网络分隔。 I.E.表示层位于某些Web服务器上,然后通过网络与后端应用服务器通信以获取业务逻辑,然后再通过网络与数据库服务器通信,也许应用服务器也会呼叫某些远程服务(比如Authorize.net进行支付处理)。



有时我们需要更多层次的上述类型和更多的机器然后它被称为N层



MVC 编程设计模式其中代码的不同部分负责表示模型某些应用程序中的视图和控制器。这两件事是相关的,因为例如Model层可能有一个内部实现,它调用数据库来存储和检索数据。控制器可以驻留在网络服务器上,并远程调用应用程序服务器以检索数据。 MVC抽象出应用程序架构如何实现的细节。

模型我们想要建立哪个模型

查看表示应用程序的UI

Contol 表示控制应用程序的逻辑



3层只是指实现的物理结构。这两个有时会混淆,因为 MVC 设计通常使用3层架构实现。


3层架构包含演示,业务和数据层。其中MVC进入表示层的内部(部分)......


Is there any Difference between MVC and 3 tier Architecture in .net?Which is better
between 2 while designing an application?

解决方案

you can read following link
http://www.c-sharpcorner.com/blogs/6446/difference-between-mvc-and-3-tier-architecture.aspx[^]
http://www.dotnetexpertsforum.com/difference-between-3-tier-architecture-and-mvc-in-asp-net-t1496.html[^]


Every Application has one are more of following Layers
1)Presentation Layer or UI Layer
2)Business Layer or Business Logic Layer
3)Data Access Layer or Data Layer

3-tier architecture usually has each layer separated by the network. I.E. the presentation layer is on some web servers, then that talks to back-end app servers over the network for business logic, then that talks to a database server, again over the network, and maybe the app server also calls out to some remote services (say Authorize.net for payment processing).

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

MVC is a programming design pattern where different portions of code are responsible for representing the Model, View, and controller in some application. These two things are related because, for instance the Model layer may have an internal implementation that calls a database for storing and retrieving data. The controller may reside on the webserver, and remotely call appservers to retrieve data. MVC abstracts away the details of how the architecture of an app is implemented.
Model on which model we wanted to build
View means UI of the Application
Contol Means the logic Which controls the Application

3-tier just refers to the physical structure of an implementation. These two are sometimes confused because an MVC design is often implemented using an 3-tier architecture.


3 tier architecture contains Presentation,Business and Data layer.In which MVC comes inside(part of) the presentation layer...


这篇关于.net中MVC和3层架构的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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