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

Task list

Image

In this chapter we’ll explore the two different approaches for manipulating an Entity Data Model in code.

The objectcontext API

Image

We’ll start by exploring the older of the two APIs: the ObjectContext API. The code produced by the Database-First and Model-First Workflows uses this API by default, and the DbContext wraps its functionality, so a basic understanding will be useful even if you decide you prefer the newer (and Microsoft-recommended) DbContext API.

The dbcontext API

After we’ve found our way around the original ObjectContext ...

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