Mentor SAP
A navigation property is tied to an association. An association is a named relationship between two entity types. Every association includes two association ends, which specify the entity types that are related and the cardinality rules for each end of the association.

 

 

CRUD Operations

One of the main features of OData is that it uses the existing HTTP verbs GET, PUT, POST, and DELETE against addressable resources identified in the URI.

 

Conceptually, OData is a way of performing database-style create, read, update, and delete operations on resources by using HTTP verbs.

 

 

CRUD Operations Called on Entity Sets

We have already observed how we can read the service document and the service metadata document using HTTP GET. Here we focus on how we can perform create, read, update, and delete operations.

 

The following operation can be called on entity sets:

 

The following operation can be called on entities:

 

OData batching enables you to send multiple operations in a single HTTP request. You can express that all these operations must be executed on the server with an all-or-nothing logic. In an OData batch request, the payload is represented as a multipart message. A batch request is sent to the batch endpoint of an OData service. The URI of the batch endpoint is the service root URI appended by $batch.