ASP.NET 与 WCF RIA 服务或 WCF 数据服务一起使用
将ASP.NET 应用程序与WCF RIA 服务或WCF 数据服务(封装数据访问层)一起使用是否有意义?或者这些技术仅对 Silverlight 应用程序有用。
Makes it sense to use ASP.NET applications together with WCF RIA Services or WCF Data Services (to encapsulate the data access layer) ? Or are these technolgies only useful for Silverlight applications.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RIA 服务背后的想法是,您可以使用它们来使用许多不同的客户端技术(例如 Silverlight、ASP.NET、WinForms、Mobile 等)创建应用程序。因此,RIA 服务绝对不仅仅适用于Silverlight 应用程序,尽管它在这种情况下特别有用,因为在 Visual Studio 中构建它们的工具非常强大。
在我看来,是否在应用程序中使用它的选择取决于应用程序的类型以及未来对基于 RIA 服务的设计的架构需求。如果您认为将来需要为您的应用程序提供多种不同的体验(Web、Silverlight、移动),那么 RIA 服务可能是您的最佳选择。 RIA服务可以选择利用WCF,因此它在面向服务的应用场景中也能发挥良好的作用。与更传统的 ASP.NET 应用程序模型相比,您必须权衡设置它所需的额外时间以及开发人员的学习曲线。
The idea behind RIA services is that you would be able to use them to create applications using a number of different client side technologies, such as Silverlight, ASP.NET, WinForms, Mobile, etc. So, RIA services is definitely not just useful for Silverlight applications, though it is especially useful in that scenario since the tools to build them in visual studio are strong.
The choice of whether or not to use it for an application, in my opinion, would be driven by the type of application and the future architectural need for a RIA services-based design. If you see a need in the future to offer multiple different experiences for your application (Web, Silverlight, Mobile), then RIA services might be the way to go. RIA services can choose to to utilize WCF, so it plays well in a service oriented application scenario too. You will have to weigh that with the extra time to set it up and the learning curve for developers compared to the more traditional ASP.NET application model.