O'Reilly logo

Fluent Entity Framework by Rebecca M. Riordan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required