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
See my blog C# Bits | Twitter @sjnaughton Always seeking an elegant solution.
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
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.
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.
Marked as answer by sjnaughton on Jan 24, 2012 08:19 PM
pallone
Member
165 Points
160 Posts
How to access a WCF Data Service from an ASP.NET Dynamic Data Application?
Jan 23, 2012 12:01 AM|LINK
Hi,
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?
Cheers
C
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: How to access a WCF Data Service from an ASP.NET Dynamic Data Application?
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
Always seeking an elegant solution.
pallone
Member
165 Points
160 Posts
Re: How to access a WCF Data Service from an ASP.NET Dynamic Data Application?
Jan 23, 2012 10:07 AM|LINK
Hi sjnaughton,
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
Cheers
C
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: How to access a WCF Data Service from an ASP.NET Dynamic Data Application?
Jan 23, 2012 01:37 PM|LINK
Then I think you can't but I will ask around to make sure :)
Always seeking an elegant solution.
pallone
Member
165 Points
160 Posts
Re: How to access a WCF Data Service from an ASP.NET Dynamic Data Application?
Jan 23, 2012 02:06 PM|LINK
Hi sjnaughton,
Thanks.
Please let me know what you find out. I really need to know if this is possible or not.
Cheers
C
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: How to access a WCF Data Service from an ASP.NET Dynamic Data Application?
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.
Always seeking an elegant solution.
pallone
Member
165 Points
160 Posts
Re: How to access a WCF Data Service from an ASP.NET Dynamic Data Application?
Jan 23, 2012 04:34 PM|LINK
Hi sjnaughton,
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.
Cheers
C
davidebb
Contributor
7006 Points
1366 Posts
Microsoft
Re: How to access a WCF Data Service from an ASP.NET Dynamic Data Application?
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.
pallone
Member
165 Points
160 Posts
Re: How to access a WCF Data Service from an ASP.NET Dynamic Data Application?
Jan 23, 2012 05:14 PM|LINK
Hi davidebb,
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?
Cheers
C
davidebb
Contributor
7006 Points
1366 Posts
Microsoft
Re: How to access a WCF Data Service from an ASP.NET Dynamic Data Application?
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.