.NET RIA Services with MVC Style Repositories?

2019-04-08 16:53发布

问题:

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!

回答1:

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/



回答2:

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