.NET RIA Services with MVC Style Repositories?

心不动则不痛 提交于 2019-12-06 02:10:48

问题


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



来源:https://stackoverflow.com/questions/1106493/net-ria-services-with-mvc-style-repositories

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!