使用 RIA 和不使用 RIA 的 WCF,建议使用哪一种?

发布于 2024-08-16 04:34:31 字数 42 浏览 1 评论 0原文

与不使用 RIA 的 WCF 相比,使用 RIA 的优点/缺点是什么?

what is the advantages/disadvantages of using RIA against WCF without RIA?

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

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

发布评论

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

评论(2

几度春秋 2024-08-23 04:34:31

优点:

  • 验证;你编写一次验证,它就可以在客户端和服务器端工作
  • 简化的代码; WCF 是封装的,因此您可以同步调用基于 RIA 的服务,无需构建代理等。
  • 与数据控件紧密集成

缺点:

  • 项目中生成的大量代码
  • XAML 标记可能会变得非常密集,即使对于简单的内容也是如此
  • (例如CTP 的版本;尚未开始使用测试版)与 Blend

RIA 服务的集成仍然是“正在进行的工作”,因此现在判断它将如何实施还为时过早。我很期待在圣诞节假期里经常玩它。

Advantages:

  • Validation; you write validation once, and it works on both client and server sides
  • Simplified code; WCF is encapsulated, so you call RIA-based services synchronously, don't have to build proxies, etc.
  • Tight integration with data controls

Disadvantages:

  • Lots of generated code in your projects
  • XAML markup can get very dense, even for simple stuff
  • (as of the CTP; haven't started working with the beta yet) no integration with Blend

RIA services is still a "work in progress" so it's too early to tell just how it will play out. I'm looking forward to playing with it a lot over the Christmas holidays.

只有影子陪我不离不弃 2024-08-23 04:34:31

我看到的唯一缺点是:

  • 您引入了对项目的新依赖项。
  • 学习曲线。
  • 它仍然是测试版。

也就是说,使用第三方库通常存在的缺点。

至于优点,我推荐安装它并查看库本身的文档。

The only disadvantages I can see are:

  • You introduce a new dependency on your project.
  • The learning curve.
  • It's still a beta.

That is, the usuarl disadvantages on using a third-party library.

As for the advantages, I recommend to install it and taking a look at the documentation of the library itself.

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