惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
Intezer
V
Vulnerabilities – Threatpost
Google Online Security Blog
Google Online Security Blog
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
P
Privacy & Cybersecurity Law Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cybersecurity and Infrastructure Security Agency CISA
N
News | PayPal Newsroom
T
Tenable Blog
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Secure Thoughts
P
Privacy International News Feed
IT之家
IT之家
Project Zero
Project Zero
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
博客园_首页
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
NISL@THU
NISL@THU
I
InfoQ
D
DataBreaches.Net
有赞技术团队
有赞技术团队
K
Kaspersky official blog
Security Latest
Security Latest
The Register - Security
The Register - Security
Hugging Face - Blog
Hugging Face - Blog
S
Security @ Cisco Blogs
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
AI
AI
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
N
News and Events Feed by Topic

博客园 - 吴博

C#类型 参考表(MSDN) 快速了解集群和双机热备相关知识 Could not find stored procedure 'sp_MSins_tablename' Javascript 判断 object 的特定类 当 ASP.NET 在 IIS 6.0 中锁死的情况下,如何生成转储文件 通往 WinDbg 的捷径 请教:在一个在方法段的异常处理里面,如何获取当前方法输入的所有参数值。 性能测试VS负载测试VS压力测试 Silverlight为什么不支持中文?有没有别的途径可以解决这个问题呢? 焦油坑与激情 sqlserver白皮书里的秘密 没有virtual的方法子类是否可以重写? 用记事本可以查看dll文件的release或debug依赖。 VC++.NET 2005 几个比较难缠的问题及其解决方法(转) [zt]关于Debug和Release之本质区别的讨论 vc++,不知道是不是bug。 MSMQ之确认消息 Overried与new 分区表的经典比喻
乱解
吴博 · 2007-08-30 · via 博客园 - 吴博

以前见到Petshop,在IDE的解决方案目录,分作好几个项目。

其中不乏将接口独立成一个项目的(即使可以在同一个项目写编写它的实现)。

刚在写一个接口时突然领悟到:这样做是否是可以避免项目循环引用?
--------------

补充:接口与实现独立出来后,还需要添加一个工厂才可以避免循环引用问题,麻烦了些。

最后采取的方法是:不采用工厂,接口实现类直接引用dal,而非bll。然后bll就可以引用接口实现。

也就是把接口的实现,与实现dal的bll看做是同一层,似乎也说得过去,因为接口的实现也是业务。

那为什么不把接口的实现直接放在bll项目里呢?由于分工的明确性,所以还是分开好了。