将 WCF 数据服务与 Windows 应用程序结合使用
在普通 Windows 应用程序(Winforms 或 WPF)中使用 WCF 数据服务是否有意义,或者该技术仅适用于 Web 或 Silverlight 应用程序?
与普通WCF相比有哪些优势?
Does it make sense to use WCF Data Services in a normal Windows applications (Winforms or WPF) or are this technology only suitable for web- or Silverlight applications?
What are the advantages in comparison to normal WCF?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
坦率地说,无论如何,这确实是个人喜好。数据服务与“常规”服务之间的唯一真正区别在于,数据服务对传输和数据格式做出一些基于约定的假设。如果使用 RESTful 服务对您有意义(对于几乎所有关键操作是数据查询或操作功能的服务都是如此),那么可以。如果您有更多面向工作流的操作,那么也许不会(也许,b/c RESTful 服务仍然可以代表工作流,如果他们愿意的话,这只是不是他们通常接受的优势)。
It is really personal preference in any case, frankly. The only real difference between Data Services an "regular" services is that Data Services make some conventions-based assumptions about your transport and data format. If using a RESTful service makes sense to you (which is true for almost all services where the key operations are data querying or manipulation functions), then yes. If you have more workflow-oriented operations, then maybe not (maybe, b/c RESTful services can still represent workflows if they want to, it's just not their normally accepted strength).
观看这些视频系列,其中向您展示了用于构建正交应用程序架构的全栈技术。
http://channel9.msdn.com/Series/The-Full-Stack
Take a look at these video series that shows you a Full Stack of technologies employed to build a orthogonal application architecture.
http://channel9.msdn.com/Series/The-Full-Stack
如果您的目标是将来使用云,那么您正在采取正确的步骤。
如果将来你预见到不同技术的产品都可以使用这个数据服务的场景。这可能是正确的一步。
If you are targeting to be on cloud in the future, you are taking the right step.
If in future you foresee a scenario where products from different technology can use this data service. This may be the right step.