Pages about Entity Framework

Single-table hierarchical data in EF Core

When listing a tree of entities, the top-level list should only contain parent-less entites. Use the Where method to search for null parents.