ODataContext

The ODataContext object creates several ODataStore instances inside. Each of these instances accesses a separate entity. To create an ODataContext instance, pass the configuration object to the ODataContext constructor. Specify the service URL and the list of entities you need to access.

If you need to specify a composite key for an entity, assign an array of key expressions to the key option. In this case, the keyType option takes on an object providing corresponding properties for each key expression, as demonstrated in the following example.