In this chapter we’ll explore the two different approaches for manipulating an Entity Data Model in code.
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)
After we’ve found our way around the original