开发者

Is there any way to tell if an entity has any relationships in EF4?

开发者 https://www.devze.com 2023-03-30 18:47 出处:网络
Using Entity Framework 4, is there any way to tell if an entity has any relationships associated with it?Suppose Object A contains a list of Object B, being tracked by EF.I remove one Object B from th

Using Entity Framework 4, is there any way to tell if an entity has any relationships associated with it? Suppose Object A contains a list of Object B, being tracked by EF. I remove one Object B from the list. During SaveChanges, I want to find the Object B that was removed and no longer has a relationship to Objec开发者_运维知识库t A so I can delete it.

Any way to accomplish this?

0

精彩评论

暂无评论...
验证码 换一张
取 消