NHibernate throwing Session is closed

 ̄綄美尐妖づ 提交于 2019-12-04 09:04:10
Ruben Bartelink

You should not be using InThreadScope() in a web app. Use InRequestScope(). EDIT Have a read of Object Scopes - its been updated recently and not knowing it backwards is going to waste your time sooner or later!

If you're looking to make stuff work across a membership provider and request processing, you need to search for Ninject Custom Provider (maybe something like here).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!