在3层体系结构中,DAL,BLL和UI必须位于不同的系统中 [英] Does in 3 tier architecture DAL,BLL and the UI has to be in separate systems

查看:114
本文介绍了在3层体系结构中,DAL,BLL和UI必须位于不同的系统中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,



我对3层架构有疑问。我开发了一个应用程序和

它有3个项目,一个asp.net项目和两个类库(BLL,DAL)。

BLL正在使用直接引用(添加来自DAL和UI的对DLL的引用是使用来自BI的直接引用。

当我正在托管时,我将这一切都放在一台服务器上,而DB放在另一台服务器上。

我的应用程序可以被称为3层还是3层?



如果它们被放置,我该如何引用这些DLL(DAL和BLL)在一台单独的机器上?或者它们应该是Web服务吗?



在此先感谢!!

Hey guys ,

I have this doubt relating to 3 tier architecture. I have developed an application and
its having 3 projects in it an asp.net project and two class libraries (BLL,DAL).
BLL is using direct reference(adding reference to the DLL) from DAL and UI is using direct reference from the BI.
When I am hosting , I am placing this all on one server and DB is on another server.
So can my application be refereed as 3 tier or is it 3 Layer?

Also how can I reference these DLL (DAL and BLL) if they are placed on a separate machine? Or Should they be web services?

Thanks in advance!!

推荐答案

您必须了解层和层之间的区别.. 。

DAL,UI等层和表示你设计的系统的逻辑分离

层另一方面是关于系统的不同逻辑部分的物理分离...
You have to learn the difference between tier and layer...
DAL, UI and so are layers and representing logical separation of the system you designed
Tier on the other hand is about physical separation of the different logical parts of the system...


如果它位于同一个安装\机器上,您正在设计所谓的分层应用程序。



进一步阅读第5章:分层应用指南 [ ^ ]
You are designing what is called a Layered application if it is on the same installation \ machine.

further reading Chapter 5: Layered Application Guidelines[^]


这篇关于在3层体系结构中,DAL,BLL和UI必须位于不同的系统中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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