Using custom Data Service Providers, do I have any control over URLs that are returned?
I'm implementing several custom Data Service Providers in WCF Data Services:
- IDataServiceMetadataProvider
- IDataServiceQueryProvider
- IDataServiceUpdateProvider
To illustrate the point of my question consider this made-up example:
I have a resource called "Employee," which can be addressed in the following ways:
MyDataService.svc/Employees(1)
or
MyDataService.svc/Employees?$filter=FirstName eq 'John'
The results that are returned automatically include URLs for each resource, like:
http://localhost:1337/MyDataService.svc/Employees(5)
, and so on.
Is it possible to, instead, have Data Services return People(5)
instead of Employees(5)
?
In short, I need some control over 开发者_开发百科URLs that Data Services generates. Is that possible?
This does not seem possible at this time.
精彩评论