Add a model

Image

The first step is to add an Entity Framework model to the project. Here’s how:

You add a new EDM to your project just like you’d add any other kind of project item. You can choose Add New Item... from the Project menu or from the context menu that’s displayed when you right-click the project in the Solution Explorer, or you can use the Ctrl+Shift+A keyboard shortcut.

Image

In the Add New Item dialog, select ADO.NET Entity Framework Model. (It’s easiest to find if you select the Data section, as I’ve done here.) I’ve called mine Hello.edmx, ...

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.