How to get the NHibernate ISession that is HttpContextScoped by StructureMap.

Posted by subskii on Stack Overflow See other posts from Stack Overflow or by subskii
Published on 2010-06-04T02:51:54Z Indexed on 2010/06/05 8:02 UTC
Read the original article Hit count: 159

Filed under:
|
|
|

Hi all

I'm somewhat new to the MVC framework and in accordance with the following post: NHibernate with StructureMap I am not sure how to actually get the HttpContextScoped ISession in my controller?

I'm sure there is a simple way to do this but I am unsure.

Also, it's a small project and I don't want to go overboard with Enterprise Design Patterns.

Thanks!

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about mvc