Same table relationship in Entity Framework

前端 未结 2 1495
耶瑟儿~
耶瑟儿~ 2020-12-30 09:55

Is it possible to have an association mapping a table to itself?

e.g.

Table:  
ConditionId  
ConditionName 
... 
...  
ParentConditionId
         


        
2条回答
  •  死守一世寂寞
    2020-12-30 10:30

    Take a look tutorial which can be download here . It explains in detail how to model self-reference table.

提交回复
热议问题