NHibernate Deleted object would be re-saved by cascade

后端 未结 2 939
再見小時候
再見小時候 2020-12-11 07:02

In my solution I have a branch of business objects with associations. So when I try save a root object after processing I get an exception with message \"Deleted object woul

2条回答
  •  一整个雨季
    2020-12-11 07:39

    The above solutions didn't work for me. The instance I tried to delete was nowhere referenced in my code.

    However, it was in NHhibernate. After clearing the session, it worked for me.

提交回复
热议问题