Data Layer EndpointSelector

An object used to manage OData endpoints in your application.

Type: Object

This object selects local data service URL or production data service URL depending on the application execution mode. The endpoint options are passed to the EndpointSelector constructor.

var endpointSelector = new{
    db1: {
        local: "http://localhost:55555/service1.svc/"
        production: ""
    db2: {
        local: "http://localhost:55555/service2.svc/"
        production: ""
    . . .

Note that the EndpointSelector can hold several endpoints. You can access the required one by its key using the urlFor(key) method.


This section describes the methods of the EndpointSelector object.