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?
精彩评论