O'Reilly logo

Entity Framework Tutorial - Second Edition by Joydip Kanjilal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Inheritance in Entity Framework

Inheritance is a property of object-oriented programming that enables you to extend new classes from existing ones and provide additional functionality to them. There are scenarios when the number of entities in the database does not match exactly with the number of the entities we need in the object model. We may need some entities that do not have any corresponding table in the database. To cater to this demand, Entity Framework provides support for entity inheritance. You can create new entities by deriving from existing entities or create altogether new entities and then define the relationship between them in your object model.

Entity Framework supports the following types of inheritance:

  • Table-per-Hierarchy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required