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

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.