How to delete child object in NHibernate?

前端 未结 6 1170
陌清茗
陌清茗 2020-11-30 18:46

I have a parent object which has a one to many relationship with an IList of child objects. What is the best way to delete the child objects? I am not deleting the parent. M

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 19:11

    set Not-Null = true in your mapping on the column causing the issue. I'm not sure of the exact syntax though (sorry).

提交回复
热议问题