How to implement inheritance Table-Per-Type in Entity Framework 4.3 via Code First approach?

陌路散爱 提交于 2019-12-01 09:38:40

In mapped inheritance you don't have accessible navigation property to parent entity unless you want to model another relation. Inheritance is "is a" relation so B is A while FK is "has a" relation.

Here you have a great walkthrough for TPT inheritance.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!