O'Reilly logo

Entity Framework 6 Recipes, Second Edition by Larry Tenny, Zeeshan Hirani, Rob Vettor, Nitin Gupta, Brian Driscoll

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

CHAPTER 3

image

Querying an Entity Data Model

In the previous chapter, we showed you many ways to model some fairly common database scenarios. The recipes in this chapter will show you how to query your model. Generally speaking, you can query your model three different ways, using:

  1. LINQ to Entities
  2. Entity SQL
  3. Native SQL

We’ll demonstrate all three approaches in this chapter and, at the same time, cover a wide range of common, and not so common, scenarios that will help you understand the basics of querying models with Entity Framework. We’ll also explore some of the new capabilities for querying data available with Entity Framework 6.

3-1. Querying ...

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