DataAccess参考提供给网站 [英] DataAccess reference gave to web site

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

问题描述

大家好,



我对添加网站引用有疑问。

如果加上'我可能会遇到什么类型的问题' 'DataAccess''对''网站''的引用。



据我所知,必须为网站提供商业门面和公共类引用。

解决方案

如果添加''DataAccess''对''网站''的引用,我可能遇到什么类型的问题。

嗯,根据功能工作,没问题。通过添加DataAccess引用,您将删除分隔UI和&的业务层。 DA层。因此,将您的应用程序架构转换为2层应用程序。



在UI和& ;;之间设置BL不是强制性的。 DA。使用的一般优秀架构之一是3层,其中BL保持UI& DA分开并充当调解员。这种结构的好处是易于维护,并且没有DB与UI的耦合。轻松更改DB层而不影响UI,反之亦然。



如果您想了解/阅读有关3层架构的更多信息,请查看以下内容:

C#中的3层体系结构 [ ^ ]

3层体系结构示例 [ ^ ]

ASP中的3层体系结构。 NET with C# [ ^ ]

Hi all,

I have a doubt regarding adding references to website.
What type of problems I may face if add ''DataAccess'' reference to ''web site''.

As per my knowledge it is mandatory to give business facade and common class references to website.

解决方案

What type of problems I may face if add ''DataAccess'' reference to ''web site''.
Well, as per feature working, no problem. By adding a DataAccess reference, you are removing business layer segregating the UI & DA layers. Thus, converting your application architecture into 2-Tier application.

It is NOT mandatory to have a BL between UI & DA. One of the general good architecture used is 3-Tier where BL keeps UI & DA separate and acts as mediator. There are benefits of this structure like easy maintenance and no coupling of DB with UI. Easy change of DB layer without affecting UI or vice-versa.

In case you want to know/read more on 3-tier architecture, please have a look at these:
3-tier architecture in C#[^]
3-Tier Architecture Examples[^]
3-Tier Architecture in ASP.NET with C#[^]


这篇关于DataAccess参考提供给网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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