NHibernate.LazyInitializationException

前端 未结 2 900
时光说笑
时光说笑 2021-02-09 03:24

We have been having this issue pop up sporadically, but now I can reproduce it every time. I am incrementing a view counter on my custom built forums, which causes an error:

2条回答
  •  爱一瞬间的悲伤
    2021-02-09 03:50

    A little further research into this issue as it has reproduced itself is that in a single call back to the server, if you do a save and get, you need to flush the session. I do my flush after the save and that seems to have corrected the problem.

提交回复
热议问题