Can I mix Table per Hierarchy and Table per Type in Entity Framework?

后端 未结 2 862
梦毁少年i
梦毁少年i 2020-12-07 01:46

Say I have 2 tables: Message and SuperMessage

and 3 entities: Message (base (not abstract)), Comment (inherits from Message) and SuperMessage (inherits from Message)

2条回答
  •  遥遥无期
    2020-12-07 02:14

    I reproduced this and got the same error as you. As far as I can tell, it appears that combining these two types of inheritance for a single base table is just not possible. I'd love to be proved wrong though. ;-)

提交回复
热议问题