使用3层? [英] Working with 3 tier?

查看:59
本文介绍了使用3层?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想知道是否有人可以通过一些简单的例子来解释3层体系结构.
我真的会很感激!
谢谢!

Hi,
I was wondering if anyone could explain the 3 - tier architecture with some simle example.
I would really be thankful!
Thanks!

推荐答案

到目前为止,已经发布了一些很好的链接.您应该阅读这些内容.

五个第二部分的介绍如下:

3层体系结构将应用程序或解决方案分为三个不同的层:数据存储,应用程序逻辑和表示.在纯3层解决方案中,每一层都应该只看其下的层(因此,数据存储不应对逻辑进行假设,并且逻辑不应参考表示层).

最常见的示例是Web应用程序,它通常具有一个数据库作为数据存储,服务器端计算和算法作为中间层,以及生成HTML/CSS/JS作为表示层的代码.但是您也可以对普通的桌面应用程序使用3层思维,这在WPF中尤为常见,因为WPF强调了Model-View-ViewModel设计模式.这三类类别分别对应于底层,顶层和中间层.

很难提供一个简单的架构问题示例,因为就其本质而言,它们指的是中等复杂系统的设计模式,而一个简单的示例总是带有为什么要打扰?"的气势.您无需在40行的应用程序中分离层.
There are some good links posted so far. You should read those.

The five second introduction is as follows:

3 tier architecture splits an application or a solution into three distinct layers: the data store, the application logic, and the presentation. Each layer should only look at those below it, in a pure 3 tier solution (so the data store shouldn''t make assumptions about the logic, and the logic shouldn''t refer to the presentation layer).

The most common example is a web application, which typically has a database as the data store, server-side calculation and algorithms as the middle tier, and code that generates HTML/CSS/JS as the presentation tier. But you can also use 3 tier thinking for a normal desktop application, and this is particularly common with WPF which emphasises the Model-View-ViewModel design pattern – the three groups of classes correspond to the bottom, top and middle tiers respectively.

It''s very hard to provide a simple example of architectural questions because by their very nature they refer to design patterns for moderately complex systems, and a simplistic example always has an air of ''why did they bother?''. You wouldn''t need to separate out the tiers in a 40 line application.


http://www.dotnetfunda.com/articles/article71.aspx [ ^ ]

您可以在Google上找到更多示例.
http://www.dotnetfunda.com/articles/article71.aspx[^]

You can google for more examples.


您可以参考以下链接:

C#中的3层体系结构 [ http://cprogramming.uniquetricks.com/asp-net-programming/Three-tier- architecture.html [ ^ ]

http://www.dotnetfunda.com/articles/article71.aspx [
you can refer to the following links:

3-tier architecture in C#[^]

http://cprogramming.uniquetricks.com/asp-net-programming/Three-tier-architecture.html[^]

http://www.dotnetfunda.com/articles/article71.aspx[^]


这篇关于使用3层?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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