Allow me to expose entities from multiple sources
A lot of the data for my OData serivce comes from my database, but I also have a need to have some of the entities in my service come from another data source (example: an existing web service)
This became possible at some point in the past. One could argue that it was always possible with a custom provider, but it’s even more possible now with a variety of combinations allowed. The recent work on public providers has enabled even more scenarios here. I think we can effectively call this issue completed.
Mike OShea commented
@Bruno Silva - thanks for the link!
Just to clarify, I am referring to pulling from multiple sources in a single odata endpoint. (The title says this, but the description is a bit ambiguous.)
In regards to Bruno Silva's comment. If this is possible using the tool kit then there should be a post made showing how to do it. (The toolkit is fantastically short on documentation.)
This is in the top 5 requested features from the Datas Services team. If it is that important to the users, maybe someone who knows how to use the toolkit should take some time out of their day and blog about it on WCF Data Services Team Blog?
This is MUST feature. Demos use one datasource. Real applications don't have the luxury. The "Entity Set Resolver" is a client side construct. It is not reasonable to assume that all your clients will implement that.
Bruno Silva commented
Have you had a look at the WCF Data Services Toolkit? It allows you to do just that, you can check it out http://wcfdstoolkit.codeplex.com/ .
I'd like to see entities from other RSS/Atom feeds - so we could have a OData converter and able to aggregate feeds from different sources!
Hope this functionality will include support to use another ORM like Nhibernate to expose data.
My clients use Nhibernate extensively. We have some requirements that can be met easily via WCF Data Services, but the clients do not wish to use Entity Framework (had burnt their fingers earlier with EF 3.5)
If you have any suggestions for this scenario please do update on this post or email me.