开发者

Recommend .NET data access layer/middle tier

开发者 https://www.devze.com 2022-12-24 10:42 出处:网络
I\'m currently creating an MVC application that will likely to expand to include a silverlight, wpf and possible windows phone all using the same data.

I'm currently creating an MVC application that will likely to expand to include a silverlight, wpf and possible windows phone all using the same data.

So I've created a class library to keep all my objects in and I've created the MVC app.

My question is what would be the best way to access the data? Taking into account possible expansion in the future.

Should I use web开发者_StackOverflow社区 services/WCF? RIA Services? Remoting? Or something else.

What have people used in the past and what do you recommend?

Thanks


We've written a bunch of applications that had a web app and a winform/smart client (so far no phone apps) that shared data. We've always opted for a web service/wcf app as method to deliver the data. It's a simple architecture (simple is good), reliable and easy to maintian.


Remoting is definately not advised since it's superseeded by WCF. Maybe the ADO.NET Data Services is something for you. With Data Services you can create a REST based service. Easy to implement and easy to use.

Here you can read what Microsoft says about it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号