Partition an entity

Image

Let’s give it a try:

Image

Create the basic model. You already know how to do this, so I won’t repeat the instructions. It should look like this:

Image
Image

Copy the entity. Just select the entire RecipeIngredient entity, press Ctrl+C and then Ctrl+V, or use the menus. The result should look like this:

Rename the duplicate entity and delete ...

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.