开发者

rookie help with NHibernate ASP.NET (C#)

开发者 https://www.devze.com 2023-02-02 01:25 出处:网络
I am trying to get my head around NHibernate, I\'ve run through this tutorial http://www.codegod.de/WebAppCodeGod/NHibernate-Tutorial-1---and-ASP-NET-AID25.aspx

I am trying to get my head around NHibernate, I've run through this tutorial http://www.codegod.de/WebAppCodeGod/NHibernate-Tutorial-1---and-ASP-NET-AID25.aspx

My problem is that I cannot compile my code (just pasting the tutorial开发者_运维知识库 code into a new MVC 2 web app) because of an unknown reference to SessionHelper in NHibernateHttpModule?

Can anyone suggest how to get this working?

Thanks,


Well that your question is a bit vague but I would try a couple of things (btw, I'm not assuming anything about your project beyond your copy and paste job)

  1. Make sure you download, add references, and using statements to the newest nhibernate libraries in your MVC project. This includes NHibernate.ByteCode.Castle.dll, NHibernate.dll, Iesi.Collections.dll, and FluentNHibernate.dll for Fluent NHibernate.

  2. Look for a more recent tutorial. The one you're referencing is ancient and may not even work with MVC2. Here's a start: Using ASP.NET MVC and NHibernate

0

精彩评论

暂无评论...
验证码 换一张
取 消