NHibernate的+ MVC3示例应用程序 [英] nHibernate + Mvc3 Sample Application

查看:92
本文介绍了NHibernate的+ MVC3示例应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在找演示如何使用NHibernate的作为一个asp.net MVC3项目的持久性层体面codeBase的。

I'm looking for a decent codebase that demonstrates how to use nHibernate as the persistance layer in an asp.net mvc3 project.

理解这两个关键部分,我希望开发的

The two key pieces of understanding that I am looking to develop are


  1. 如何处理的ISession和
    ISessionFactory。

  2. 如何实现存储库模式无漏水了NHibernate的实行的任何细节。

我知道夏普架构,并通过现在在读 - 它的有趣,但我找到一个直接的web应用程序挑选除了比另一个框架,以了解更多热衷

I'm aware of Sharp Architecture and reading through that now - Its interesting but I'm more keen on finding a straight-forward web app to pick apart than another framework to learn.

先谢谢了。

推荐答案

我把一个项目,提供了一个如何做一个这样的例子使用NHibernate和asp.net MVC 2的资料库和NHibernate的实现将是几乎相同。也许最大的变化将是IOC /依赖注入件。看一看。它应该提供一个坚实的起点。这里是URL。

I put together a project that offers an example of how to do this using nhibernate and asp.net mvc 2. The repository and nhibernate implementations will be almost the same. Probably the biggest change will be the ioc / dependency injection piece. Take a look. It should provide a solid starting point. Here is the URL.

HTTP://gpsnerd.$c$cplex.com

让我知道,如果你有问题。

Let me know if you have questions.

鲍勃

这篇关于NHibernate的+ MVC3示例应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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