[英]Getting child entity from parent entity in entity framework c#
I have 1 to many relationship tables in SQL and I am using EF in MVC. 我在SQL中有1到许多关系表,并且在MVC中使用EF。 I would like to get all relational child from parent table.
我想从父表中获取所有关系子级。 relationship is setup on DB level.
关系是在数据库级别上设置的。 PK to FK etc.
PK到FK等
I want to delete entity with child (and child of child). 我想删除有孩子(和孩子的孩子)的实体。
please advise. 请指教。
Thanks 谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.