2012-02-24 55 views

回答

1

我有一個示例項目在這裏,你可以檢查出其中有一個工作的OData測試:https://github.com/Marcus-L/Test-Upshot

這裏有一個代碼片段:

upshot.dataSources = upshot.dataSources || {}; 
upshot.dataSources.ParentThings = upshot.RemoteDataSource({ 
    provider: upshot.ODataDataProvider, 
    providerParameters: { url: "/OData.svc", operationName: "ParentThings", operationParameters: { $expand: "Children"} }, 
    bufferChanges: true, 
    dataContext: undefined, 
    mapping: {} 
}); 
upshot.dataSources.ParentThings.refresh(); 
+0

接受的,因爲它演示瞭如何使用結果用的OData和表演其能力和侷限性。 – 2012-03-26 00:34:13