Modelling TPH

Here are the three things you need to do to create a TPH model. Only creating the new entity is new to you, and it’s pretty straight=forward. (And we’ll look at it in detail in Chapter 6 when we explore the Model-First Workflow.

Image

Add the new entity. You can use the Entity tool in the toolbox, or right-click on a blank area of the primary design surface and choose Entity from the Add menu. Either way you’ll get a dialog that lets you specify the entity name and its base type.

Image

Move the properties. The technique is the same as the ...

Get Fluent Entity Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.