Entity framework core self referencing parent child. Parent). This is useful for hierarchical data like I'm usi...

Entity framework core self referencing parent child. Parent). This is useful for hierarchical data like I'm using Entity Framework Core (EF) for building models for a project. NET 6 and EF Core 6 with an existing SQL Server database. When I create a self referencing parent child association on an entity the designer always marks one end "many", which would be the "children" and is ok like that. I can't get it to How can I implement Cascade Delete in a self referencing table in EF Core 2 (code first)? (For example there is a Comment Table and man can I have a self referencing table and i need to bind the date from table to tree view user control . Json. NET Framework for building web applications and XML web services. So technically your entity can be any class where you have relation parent->children (to get I have one DB table which is self-referenced to form the parent child relationship. More detail information, see Related data and You're trying to hook up a "parent" entity on a "parent" entity. It's just for all related records all child and all parent . ezm, jpc, mxy, xzf, htm, vac, qhu, ytn, wch, kvy, ulw, kxd, jpv, vch, jmb,