I have a simple and beginner question.
I have two table开发者_StackOverflow中文版s with 1 to N relationship. I want to when I delete a row in parent table, in an
other table the child of that row delete too.
How can I do that using entity framework?
Probably it was asked before, refer to the link below:
Delete an object and all of its related entities in Entity Framework
I do believe that you should handle that at Database level by using CASCADE DELETE ON
.
精彩评论