❔ Linq Query HELP
I have this entity. During deletion, I would like to load all related entities, so that I can delete them also. Here is the entity
I have come this far
I would like to load the Replies, and there likes, dislikes, suspensions. I also need to load the replies of replies and there likes, dislikes, suspensions etc. Any help would be appreciated. I don't think this query will do the job.
4 Replies
Can't you just set up the delete behaviour to cascade...?
@ZZZZZZZZZZZZZZZZZZZZZZZZZ I have tried that, the problem is that when migrating. It's not liking it.
loading all this stuff just to delete it is kind of a waste of resources if you ask me
if migrations don't work because data is half deleted and half not then you have to look again at the foreign keys
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.