Using model first

Image

Let’s give ia a try:

Image

Create the project (I called mine ModelFirst) and add the Entity Framework NuGet package. This is old hat by now, right?

Image

Add an empty model. (I called mine ModelFirstRecipes.) Add a model the same way you always do, but this time choose Empty Model on the first page of the wizard.

Image

Add the entities and ...

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.