我如何...无法添加对businessaceesslayer的引用添加此项目作为参考将导致循环依赖。 [英] How do I...a reference to businessaceesslayer could not be added adding this project as reference would caise a circular dependency.

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

问题描述

如何将引用bll引用添加到数据访问层

how to add reference bll reference to the data access layer

推荐答案

当您有两个或更多使用另一个的组装项目时,您将获得循环引用:因此,遵循引用链将导致无限循环。

解决此问题的最佳方法是创建包含常用材料的第三个程序集,但不需要引用任何其他程序集,以及让两个项目都参考。
You get a circular reference when you have two or more assembly projects that each use the other: so following the reference chain will cause an infinite loop.
The best way to resolve this is to create a third assembly which contains the "common" materials, but does not need to reference any other assemblies, and have both projects refer to that instead.


这篇关于我如何...无法添加对businessaceesslayer的引用添加此项目作为参考将导致循环依赖。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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