在.NET数据访问层数据、NET

2023-09-03 15:35:15 作者:月移花影玉人来

我要找示例应用程序或一些文章展示了如何实现使用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