In this chapter, we will discuss Object Services and it 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 Object Query object for query processing. To use Object Services, you should include the System.Data.Objects
and System.Data.Objects.DataClasses
namespaces.
In this chapter, we will discuss the following:
An introduction to Object Services
Using Object Services to perform CRUD operations
Handling data concurrency conflicts using
ObjectContext
Inheritance in the Entity Data Model