.NET RIA Services with MVC Style Repositories?
Asked Answered
M

2

5

I have a Solution with several projects in it, including two asp.net mvc projects that share a Repositories and Models that live in a external assembly (also in the same solution). Essentially...

Core/
-Repositories
-Models

Domestic.Web/
-Basic MVC Site, references the core project

International.Web/
-Basic MVC Site, references the core project

What I want to do is build a Silverlight 3 / RIA Services application for all the database admin. Thats fine except RIA Services (for the most part) is only really documented with the Entity Framework - you can find some info on Linq2Sql and even less on backing RIA with POCO.

What I need is the best references you have on using RIA with POCO but even better if there is some documentation on using it with a MVC / Nerddiner style Repository pattern.

Thanks!

Magalymagan answered 9/7, 2009 at 21:14 Comment(1)
Did you implemented projects using RIA Services + Coolite and MVC?Bergeman
A
0

We in the RIA Services team are working on a sample MVC application using RIA Services for Domain Logic. We should have the sample posted by next week. I'll ping you when the Sample goes live.

EDIT:

Here is the link to the sample. Much much later than I think Saurabh intended :)

http://code.msdn.microsoft.com/Repository-Pattern-Demo-fece07ed/

Astereognosis answered 10/7, 2009 at 2:57 Comment(3)
That should certainly help. I could then conceivably build one RIA service and consume it from both silverlight and MVC? Is that the idea there? My other choice is to build a straight up WCF service and consume it from silverlight and mvc - but that isn't much different / better. I was hoping the example sfor a POCO provider would help, could simply use the Repository to supply the data as normal but there are few good POCO examples as well.Magalymagan
Please update this answer with the links. Current answer is not helpful.Abscond
Hi Saurabh Have your sample done? Can you post the link here as well? I am very interested in it too. In fact, I am trying to put EF4 + WCF RIA Services + asp.net MVC + Coolite (Extjs for asp.net) all together in my new project. thanks!Frock
D
1

Getting started with the repository pattern in Silverlight

http://msmvps.com/blogs/theproblemsolver/archive/2009/02/18/getting-started-with-the-repository-pattern-in-silverlight.aspx

Diuresis answered 9/7, 2009 at 21:33 Comment(1)
Maybe Im'm not up ont he related terminology, but that blog entry doesn't seem to touch on the RIA services Unless that is what the term "ADO.NET Data Service" in the post is referring too). Thanks for the info though, it is helping form a clearer picture!Magalymagan
A
0

We in the RIA Services team are working on a sample MVC application using RIA Services for Domain Logic. We should have the sample posted by next week. I'll ping you when the Sample goes live.

EDIT:

Here is the link to the sample. Much much later than I think Saurabh intended :)

http://code.msdn.microsoft.com/Repository-Pattern-Demo-fece07ed/

Astereognosis answered 10/7, 2009 at 2:57 Comment(3)
That should certainly help. I could then conceivably build one RIA service and consume it from both silverlight and MVC? Is that the idea there? My other choice is to build a straight up WCF service and consume it from silverlight and mvc - but that isn't much different / better. I was hoping the example sfor a POCO provider would help, could simply use the Repository to supply the data as normal but there are few good POCO examples as well.Magalymagan
Please update this answer with the links. Current answer is not helpful.Abscond
Hi Saurabh Have your sample done? Can you post the link here as well? I am very interested in it too. In fact, I am trying to put EF4 + WCF RIA Services + asp.net MVC + Coolite (Extjs for asp.net) all together in my new project. thanks!Frock

© 2022 - 2024 — McMap. All rights reserved.