无法添加对业务访问层的引用添加此项目作为引用会导致循环依赖如何解决此错误? [英] reference to the business access layer could not be added adding this project as a reference would cause a circular dependency how to solve this error?

查看:362
本文介绍了无法添加对业务访问层的引用添加此项目作为引用会导致循环依赖如何解决此错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我有3layers BusinessLogicLayer(BLL),DataAccessLayer(DAL),PresentationLayer我已经将DAL Referece添加到BLL.And当我将DAL参考添加到DAL时,我的命令错误

当我添加dll参考时它添加非常精细但仍然存在红色卷曲错误行

请帮助我提前谢谢

in my project i have 3layers BusinessLogicLayer(BLL),DataAccessLayer(DAL),PresentationLayer i have already added the DAL Referece to the BLL.And When i adding the BAL Reference to the DAL i am getting above menioned error
and when i adding dll reference it is adding very fine but still the red curling error lines existing
please Help me Out Thanks In Advance

推荐答案



我有一个问题,是什么需要从BAL类添加对DAL类的引用。因为DLL引用将bi添加到BLL引用,BLL引用将是添加到Presentation层。但是你仍然可以添加BLL引用到DLL类。只需将所有类拉到一个文件夹并将该文件夹放到你的应用程序的App_Code文件夹然后你可以访问所有的类。如果它不起作用请请告诉我。
Hi,
I have a question that what is the need of adding reference to the DAL class from BAL classes.Because DLL reference will bi added to BLL reference and BLL references will be added to Presentation layer.But still you can add the BLL references to the DLL classes.Just pull all classes to a folder and put that folder to App_Code folder of your application then you can access to all the classes.If it does not works please let me know.


这篇关于无法添加对业务访问层的引用添加此项目作为引用会导致循环依赖如何解决此错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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