什么是最好的? MVC或3层(C#.Net) [英] What is best ? MVC Or 3 tier (C#.Net)

查看:85
本文介绍了什么是最好的? MVC或3层(C#.Net)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是最好的? 

what is best? 

MVC或3层 

MVC Or 3 tier 

为我提供样本3层架构/ c#链接。 net(桌面应用程序)

Give me Sample 3 tier architecture/Link for c#.net (Desktop Application)

推荐答案

MVC和3层(或N层)不是唯一的 - 它们解决了非常不同的问题。

MVC and 3-Tier (or N-Tier) are not exclusive - they address very different concerns.

 

MVC是如何构建用户界面的一个选项。   N层数据访问是构建"模型"的一种方式。 MVC(或MVP,Presentaiton模型,MVVM等)的一部分。

MVC is one option for how to architect your user interface.  The N-Tiered data access is one way to architect the "model" portion of MVC (or MVP, Presentaiton Model, MVVM, etc).

 

如果您想了解更多关于演示方面的信息在某些情况下,您可能需要查看模式和实践指南,例如
WPF和Silverlight的复合指南。  对于N层开发,您可以参考
企业库,虽然现在,许多人已经切换到围绕
构建的众多解决方案之一 WCF

If you want to learn more about the presentation side of things, you may want to look at the Patterns and Practices guidance, such as the Composite Guidance for WPF and Silverlight.  For N-Tier development, you could refer to the Enterprise Library, though now, many people have switched over to one of the many solutions built around WCF instead.


这篇关于什么是最好的? MVC或3层(C#.Net)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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