Sunday, September 02, 2012 10:18 PM
How can LS oData expose "service operations"? I am referring to exposing queries with parameters. Currently, I see that it can expose "entities".
I also see a related thread here - this talks about importing "service operations":
- Edited by aargeekay Sunday, September 02, 2012 10:55 PM
Tuesday, November 13, 2012 6:41 PM
LightSwitch does expose queries defined on the server. They will show in the form [baseUrl]/[datasourceName].svc/[queryName]()?[parameterName]=[parameterValue]. So for a query named Query1 that takes a string parameter named FirstName the url would be something like http://myserver/myLSApp/ApplicationData.svc/Query1()?FirstName='Elizabeth' on a published application. When F5'ing the url would be something like 'http://localhost:12345/ApplicationData.svc/Query1()?FirstName='Elizabeth'.
Hope that helps,
This posting is provided "AS IS" with no warranties, and confers no rights.
- Marked As Answer by Beth MassiMicrosoft Employee, Owner Wednesday, November 14, 2012 6:56 PM