分层.Net架构 [英] Layering in .Net Architecture
本文介绍了分层.Net架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果有人问您为什么我们在开发中使用图层:演示文稿,业务和数据访问层?你会怎么说
解决方案
你可以在这里阅读并得到一些答案...
http://fewagainstmany.com/blog/introduction-to-layered-architecture-part-one 一> [ ^ ]
快速回答。
在表格/页面中编写代码(与数据库提供程序*或通用函数相关)不是一个好主意。这就是我们需要使用图层分离内容的原因,所以你可以重用这些东西。
*就像打开dbconnection一样,使用dbcommand等,
If someone ask you why we use layers in development: Presentation, Business & Data Access Layer? What would you say
解决方案
You may read here and get some answers...
http://fewagainstmany.com/blog/introduction-to-layered-architecture-part-one[^]
Quick Answer.
Writing code(related to database provider* or generic functions) in form/page is not a good idea. That's why we need to seperate the things using layers, so you could reuse the things.
*Like opening the dbconnection, using dbcommand, etc.,
这篇关于分层.Net架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文