❔ EFCORE DESIGN ONE TO MANY
Can you guys help me to design a correct one to many relationships in this case
This one will be cycle because it's include the User and the User have ChatMessages like in the image so this will cause recursive cycle when loading the data
But I end up need it for setup Delete Cascade behavior
Any suggestion ?
The problem
I have this LINQ belowThis one will be cycle because it's include the User and the User have ChatMessages like in the image so this will cause recursive cycle when loading the data
My solution (but fail)
OnUser.cs I could remove the below properties But I end up need it for setup Delete Cascade behavior
Any suggestion ?
