nhibernate mapping: A collection with cascade=“all-delete-orphan” was no longer referenced

后端 未结 3 606
北恋
北恋 2020-12-16 12:50

I am having some probs with my fluent mappings. I have an entity with a child collection of entities i.e Event and EventItems for example.

If I set my cascade mappin

3条回答
  •  醉酒成梦
    2020-12-16 13:31

    Check this SO post: NHibernate: Delete a child record from the parent collection

    The comments to the accepted answer has similar issue.

    You may want to try removing AsReadOnly for your EventItems to check if that's the cause.

提交回复
热议问题