Using RIA Services with PRISM

Jul 28, 2009 at 1:12 PM

In case your wanting to dabble with the RIA Services with PRISM I found "a" way to make it work.  

If there is a better way - please let us know!   Blogged about on the following link (with Webcast)

http://www.global-webnet.net/blogengine/post/2009/07/27/How-to-use-NET-RIA-Services-in-PRISM.aspx

 

Aug 3, 2009 at 12:21 PM

Hmm... I added the RIA link to each of my modules that needed data access, using the Project Options window. Then in my ViewModel class I use the autogenerated classes to fetch and modify data.

What do you think of this approach?

Aug 3, 2009 at 1:20 PM

Not knowing your business requirements or the scope of the application I would have to blindly say - it's a great approach :)    As a team player I rarely, if ever, question another developers approach to solving a problem - we all know that if 10 of us were thrown into a room with a problem we would all come out with different ways of solving it (with the problem solved they would all be right).

With that said.   I'd have to ask some questions so that "you" could determine if it is the best approach.   Is this an enterprise level application?  Is there a need for the business logic to be reused (now or in the future)?

If the answer is yes you might want to consider the Separated Presentation pattern which is well suited for PRISM's dependency injection (DI) environment.    By creating a Business Logic Layer and Data Access Layer (both with their own interfaces) you get the same benefits WITH reusability AND extensibility.   

 

Aug 15, 2009 at 5:19 AM

Hi Bill

Would you also provide a sample for it? I am new to Prism and RIA, and I think these 2 will go well together.

thanks

sean

Aug 16, 2009 at 1:10 PM

I activated the project early - it's on the following link:

http://www.CodePlex.com/MultiTargeting

I was going to wait until I got the WinForm wired up to the Presentation Model so that it emulates WPF/SIlverlight's usage of the Presentation Model.  I hope to have it plugged in this week so that I can create the WCF services and start data binding the views to the Presentation Model (only RIA services currently work - with stubbed in data).

Aug 17, 2009 at 5:44 PM
Billkrat wrote:

In case your wanting to dabble with the RIA Services with PRISM I found "a" way to make it work.  

If there is a better way - please let us know!   Blogged about on the following link (with Webcast)

http://www.global-webnet.net/blogengine/post/2009/07/27/How-to-use-NET-RIA-Services-in-PRISM.aspx

 

You can also just use RIA Services Class Libraries and not have a RIA Link on your shell project. I have several posts in the RIA Services forum on using RIA Services with Prism.

Aug 19, 2009 at 6:23 PM

Hi, 

David Hill, p&p architect, has recently posted a really interesting article on this topic:

 Hope it helps! 

Matias Bonaventura
http://blogs.southworks.net/matiasb

Sep 11, 2009 at 10:20 AM

I agree with ColinBlair using the RIA Service Class Libraries and not have a link in your shell project / modules is a much cleaner implementation.