Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 23, 2012 07:11 PM by davidebb
Jan 23, 2012 12:01 AM|LINK
Instead of using the EntityDataSource to access the model (.edmx) directly, I would like to fetch and update data through a WCF Data Service.
Howver, I cannot find any data source that would be suitable for that. I believe the DomainDataSource is to be used with WCF RIA services.
Could someone please shed some light?
Jan 23, 2012 09:48 AM|LINK
you have to use the Domain Service version of the Dynamic data Project template to get this you install WCF RIA Services as the project uses the DomainServiceDataSource
Jan 23, 2012 10:07 AM|LINK
Thanks for the reply.
Maybe my question was not clear but I do not want to use WCF Ria Services.
I need to use something that will work with the WCF Data Service.
I am not sure if you are aware but there is a huge difference betwee WCF Data Service and WCF RIA Service. In my case I need to use WCF Data Service to access and change data.
Has anyone been able to use WCF Data Service with ASP.NET Dynamic Data? How
Jan 23, 2012 01:37 PM|LINK
Then I think you can't but I will ask around to make sure :)
Jan 23, 2012 02:06 PM|LINK
Please let me know what you find out. I really need to know if this is possible or not.
Jan 23, 2012 04:16 PM|LINK
Apprently David Ebbo sis some sample and you may fine what you among them here
http://aspnet.codeplex.com/releases/view/54273 I will have a look when I get a moment.
Jan 23, 2012 04:34 PM|LINK
I had a quick look at the sample descriptions but none of them state that they are using WCF Data Service to fetch the data. It is going to be a pity if we cannot use WCF Data Service with ASP.NET Dynamic Data.
Jan 23, 2012 05:04 PM|LINK
I had indeed done a prototype of this a while back. You can find it on http://aspnet.codeplex.com/. Specifically, go to the sources (e.g. browse them
here), and go under Dynamic Data / Future / Experimental / Astoria.
"Astoria" was the code name for WCF Data Services at the time.
Note that this was a prototype and not production code, so it may be in somewhat rough form.
Jan 23, 2012 05:14 PM|LINK
Many thanks for providing the link for us.
Wow!! I think what you tried to do was to create a new data source called DataServiceLinqDataSource that derives from the LinqDataSource.
So if you tried to do that is because there is no support for WCF Data services in Dynamic data, right?
Have you tried to use your solution anywhere? Is it hard? Do you have any tutorials or sample/demo application use in VS 2010 and EF?
Jan 23, 2012 05:27 PM|LINK
Indeed, there is no direct support for it.
I just moved a more complete project to github: https://github.com/davidebbo/DynamicDataWCFDataService. This has a ready-to-run sample. I just tried it in VS2010 and it ran fine. It uses
EF on the server.
This is just a sample, but hopefully it can be helpful to you.