在.NET数据访问层 [英] Data Access Layer in .net
本文介绍了在.NET数据访问层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要找示例应用程序或一些文章展示了如何实现使用NHibernate或实体框架4.0的数据访问层。该应用程序包含了很多与数据库的逻辑,但我不想动这个逻辑到存储过程或涂抹层(BLL和DAL)之间的逻辑。我找很好的例子如何能在现实生活中的应用程序来实现。
I am looking for sample applications or some articles showing how to implement a data access layer using NHibernate or Entity Framework 4.0. The application contains a lot of logic with DB, but I don't want to move this logic into stored procedures or "smudge" this logic between layers (BLL and DAL). I am looking for nice examples how it could be implemented in real life application.
推荐答案
两个
的企业应用架构看仓库模式
NHibernate的:
Nhibernate:
- https://github.com/sharparchitecture/Sharp-Architecture - 用NH架构并希望使用EF以后
- https://github.com/jongeorge1/Who-Can-Help-Me - 我喜欢这个,它建立在夏普拱顶部
- NH项目的大名单一看有些是系统 HTTP:/ /nhforge.org/wikis/general/open-source-project-ecosystem.aspx
- https://github.com/sharparchitecture/Sharp-Architecture - an architecture using NH and looking to use EF later
- https://github.com/jongeorge1/Who-Can-Help-Me - I like this, its built on top of Sharp Arch
- big list of NH projects have a look some are systems http://nhforge.org/wikis/general/open-source-project-ecosystem.aspx
EF 4
- http://www.dofactory.com/Framework/Framework.aspx - 要为
- HTTP://microsoftnlayerapp.$c$cplex.com/ - 的nTier应用程序
- http://www.dofactory.com/Framework/Framework.aspx - have to pay for
- http://microsoftnlayerapp.codeplex.com/ - Ntier app
这篇关于在.NET数据访问层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文