How can I specify realtionship in the same table using Entity Framework?
My items table has the following fields: - Id (uniqueidentifier) - ThreadId (uniqueidentifier) - Created (datetime) - Text (nvarchar (max))
My Model Subject: - Id (Guid) - ThreadId (Guid) - Created (DateTime) - Text (string) - ChildItems (Icollection)
How to create a relationship so that ChildItems elements retain elements with Id = ThreadId?
source
share