Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find a good NHibernate and ASP.NET MVC Reference Application

Where can I find a good NHibernate and ASP.NET MVC Reference Application? I downloaded S#arp and this seemed to be a lot more than I needed (IOC and CodeGen via T4). I might work my way up to this later, but I need something smaller at first.

Any simple examples? I just want to pick up how NHibernate Session handling works in ASP.NET MVC. And maybe how some simple query scenarios work. Still trying to grasp how a SELECT DISTINCT would be done in NHibernate and through to the View via the ViewData.

like image 457
BuddyJoe Avatar asked Feb 18 '09 22:02

BuddyJoe


2 Answers

I would try to tackle them independently.

Before Billy McCafferty wrote sharp-architecture he wrote, what I think is, a must read on codeproject about best practices with NHibernate. Also, I have just discovered some DimeCasts(by Kyle Baley) under the MVC tag that are very good.

Rob Conery created the ASP.NET MVC Storefront video series which he goes over a lot of patterns and practices. The backend written is using Linq to SQL but can be adapted with LinQ to NHibernate. More recently he has also done a video series on TekPub - NHibernate with Ayende Rahien. Lastly (for NHibernate) there is the Summer of NHibernate

The S# arch source itself now comes with a sample projects as well.

Finally, there is Code Camp Server that is built with MVC.Net and NHibernate and uses pretty much every open source tool you can think of...

sidenote

If your interested in getting rid of those annoying XML files when using NHibernate you might also want to look at fluent.

like image 144
cgreeno Avatar answered Sep 24 '22 18:09

cgreeno


Code Camp Server

like image 34
Tim Scott Avatar answered Sep 25 '22 18:09

Tim Scott