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

Write some code

Image

Now that we have the model in place, let’s try it out. We’ll write a little LINQ query that just prints out the title and description of each recipe in the database.

Add the following code to the program.cs or Module1.vb file that Visual Studio created for you when you created the project. You might have to reopen it from the Solution Explorer if you’ve closed and reopened the project:

Image
Image

Once you have the code typed in, run the ...

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