EF Core Many-to-Many self join
问题 I am trying to describe a many-to-many self-referential relationship to Entity Framework Core 2. Essentially what I'm trying to model is a sort of tree structure, in which each element can have an arbitrary number of parent and child elements (so I guess more a graph than a tree). Here's what I have so far: public class OrgLevel { ... public ICollection<OrgLevelOrgLevels> OrgLevelOrgLevelsAsParent { get; set; } public ICollection<OrgLevelOrgLevels> OrgLevelOrgLevelsAsChild { get; set; }