Last post Aug 19, 2016 10:49 AM by Cathy Zou
Aug 18, 2016 07:29 AM|krishn451|LINK
I am removing an item from child list as
I got exception as Can not directly mark a child object for deletion - use its parent collection
any suggestions how to fix this?
Thanks in advance
Aug 19, 2016 03:12 AM|PaulTheSmith|LINK
Is this line of code inside a loop? Show the surrounding code.
Aug 19, 2016 10:49 AM|Cathy Zou|LINK
From your description, I suppose that there is some relationship between your entity model, which lead to cascade delete. So, I suggest you could check the relationship between your entity.
For more information about cascade delete, you could refer to the link below:
If my suppose is the reason leads to your problem. You could refer to the following link to fix it.
Hope this can help you. If you have any question and confusion about the problem. Please don't hesitate to let me know.