推荐.NET数据访问层/中间层

发布于 2024-08-26 16:27:05 字数 254 浏览 4 评论 0原文

我目前正在创建一个 MVC 应用程序,该应用程序可能会扩展为包括 silverlight、wpf 和可能的 Windows Phone,所有这些都使用相同的数据。

因此,我创建了一个类库来保存所有对象,并创建了 MVC 应用程序。

我的问题是访问数据的最佳方式是什么?考虑到未来可能的扩展。

我应该使用 Web 服务/WCF 吗? RIA 服务? 远程处理? 或者其他什么。

人们过去使用过什么,您推荐什么?

谢谢

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 services/WCF?
RIA Services?
Remoting?
Or something else.

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

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

虚拟世界 2024-09-02 16:27:06

我们编写了一堆应用程序,其中有一个 Web 应用程序和一个共享数据的 winform/智能客户端(到目前为止还没有手机应用程序)。我们始终选择 Web 服务/wcf 应用程序作为传递数据的方法。它是一个简单的架构(简单就是好的)、可靠且易于维护。

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.

朮生 2024-09-02 16:27:06

绝对不建议使用远程处理,因为它已被 WCF 取代。
也许ADO.NET 数据服务适合您。通过数据服务,您可以创建基于 REST 的服务。易于实施且易于使用。

在这里您可以阅读 Microsoft 对此的说明。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文