How to properly use a NHibernate ISession object - Session Is Closed! errors

前端 未结 4 1734
伪装坚强ぢ
伪装坚强ぢ 2021-01-04 19:23

I\'m running into issues with my ISessions in NHibernate. I keep getting \"Session Closed!\" errors. Can some one please show me the correct pattern including a definition o

4条回答
  •  旧时难觅i
    2021-01-04 19:47

    You should always use session.Dispose(); The other are for very strange occurances

提交回复
热议问题