

Table-per-Hierarchy versus Table-per-Type InheritanceĪ database can store information about related objects in one table or in multiple tables. Instead, you'll add derived entities to the data model and modify existing pages to use the new entities.


In this part of the tutorial, you won't create any new web pages. You can create the same kinds of inheritance structures among entities in the Entity Framework. For example, you could create Instructor and Student classes that derive from a Person base class. In object-oriented programming, you can use inheritance to make it easier to work with related classes. This tutorial will show you how to implement inheritance in the data model. In the previous tutorial you worked with related data by adding and deleting relationships and by adding a new entity that had a relationship to an existing entity. For information about the tutorial series, see the first tutorial in the series Implementing Table-per-Hierarchy Inheritance The Contoso University sample web application demonstrates how to create ASP.NET Web Forms applications using the Entity Framework 4.0 and Visual Studio 2010.
