locked
Some questions about WCF Data Services RRS feed

  • Question

  • Hi I have some questions about WCF Data Services, I have worked a bit with Ria Services which I don't really like cause its so Data Oriented and I want to work more in a Object Oriented way. I have read some blog posts that WCF Data Services can solve it for me so I don't need to have any extra meta tags inside my domain mode, dont have to worry about alot of id's and so on. (Of course there are Id's but not as in ria.)

     

    My questions are a bit about if Wcf Data Services has some things that is allowed in ria such as if you name a partial class .shared.cs with domainlogic it will be generated on the silverlight side, even if I dont like this approach (I like shared assemblies) shared assemblies wont work so good in SL.

    Can anyone see what I'm after??

    Thursday, April 8, 2010 10:53 AM

Answers

All replies

  • Hi,

    WCF Data Services doesn't provide any "code sharing" out of the box. You could implement something on top, but it would not be as easy as with RIA services. WCF Data Services are primarily for exposing data in a way which is client agnostic (any client can access it, not just Silverlight, but for example jscript, .NET, php, ...), so adding some "code" to it would hardly make any sense.

    Thanks,


    Vitek Karas [MSFT]
    Thursday, April 8, 2010 12:11 PM
    Moderator
  • Well it were what I guessed, are there any good blog posts or projects with any best practise guideline how to use Wcf Data Services for Silverlight even if it is not supposed to only work with Silverlight.

     

    I'm thinking that Ria Services is a really pain in the ____ because it affect's my domain in such a bad way, sure its really performance optimized but it makes the model and everything around more complex, that are my opinion. So I'm out here for alternatives.

    Thursday, April 8, 2010 8:24 PM
  • Hi Niclas,

    Our MSDN Dev  center has some good articles about using the WCF Data Services client library with Silverlight  , here :

    http://msdn.microsoft.com/en-us/library/cc838234(v=VS.95).aspx

    Also , you can find a couple of interesting articles on the team blog

    http://blogs.msdn.com/AstoriaTeam

    and <shamelessPlug> my blog </shamelessPlug>

    http://blogs.msdn.com/phaniraj/archive/tags/Silverlight/default.aspx


    Phani Raj Astoria http://blogs.msdn.com/PhaniRaj
    Thursday, April 8, 2010 9:10 PM
    Moderator