Handeling Data from RIA service

Topics: Prism v4 - Silverlight 4
Feb 4, 2011 at 12:21 PM
Edited Feb 4, 2011 at 2:30 PM

Dear All,

So far I am going well in my application using PRISM4, thanks to many psots I have read.

Now it's time to get the data from my two RIA service class library that hosts the .edmx.

How should I handle the data from RIA service, I mean I want to :

1- create a service class that hold the data for my viewmodel.

2- Define an ObservableCollection<tablename> property of Products and pass it back to my VM.

The problem here is that the result comes from my domaincontext can be assigned to IEnumerable not observablecollection.

what is the best approach ....


The RIA service two projects are created, the client-prj & web-prj, then I reference the web-prj from my web application and reference the client-prj from my silverlight applications.

Best regards


Feb 4, 2011 at 1:49 PM

I highly recommed reading these series, as its the best resource you can find at the time of writing for handling RIA Services in MVVM. Even Prism is partially handled there.




Feb 4, 2011 at 2:30 PM

I did already ... but thanks anyway, I found the solution ....