Chapter 7. Working with the Object Services Layer
We explored multiple features of Entity Framework in the last few chapters. We had a look at the Object Service Layer and the consolidated programming model it presents in the form of strongly-typed objects. With this, you can represent entities as object instances of data classes mapping to the entity types in the model. The Object Service Layer can keep track of changes made to the objects in-memory and update the database accordingly. The results of the execution of a query in the EDM are available as objects—this enables you to have the option to choose either from EntityClient or Object Services in your application.
In this chapter, we will explore Object Services and how they can be used to perform CRUD operations against the Entity Data Model. Object Services provide services such as identity resolution, change tracking, object persistency, and also update processing. The Object Services Layer internally uses an ObjectQuery...