Performing CRUD Operations

The DataServiceContext class is responsible for tracking entities and changes made to entity instances. Changes are kept in memory until they are persisted to the data store with an explicit invocation to the SaveChanges method. To manipulate data, DataServiceContext exposes methods for executing create/read/update/delete (CRUD) operations. Specifically, it exposes the following methods:

Image AddObject adds an instance of a business object into the data model through the OData service. It invokes the POST HTTP method.

Image DeleteObject ...

Get Visual Basic 2015 Unleashed 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.