Use the EDM wizard

Image

After you click Add on the New Item dialog, Visual Studio will display the first page of the Entity Data Model Wizard. Of course, you could cancel out of the Wizard and do everything manually, but I’ve never seen a good reason to do so. The Wizard is easy to use and does a good job of building the basic model. As you’ll see, you can always fine-tune things afterward.

Image

First up, the Wizard will ask you whether you want to choose a database or just open an empty model. We’re using the Database First workflow, so accept the default ...

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.