LINQ to XML 和 RIA 服务?
两者有什么区别?它们是否应该执行同一个功能——数据绑定?或者相比之下,它们是“苹果和橙子”吗?
What is the difference between the two? Are they supposed to perform one and the same function - data binding? Or are they "apples and oranges" in comparison?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些确实是不同的事情。 LINQ to XML 是一种尝试将 XML 数据视为关系数据并查询该数据的方法。
RIA 服务是一种特殊类型的 WCF 服务,它将数据公开给紧密耦合的客户端。它们可以具有 SOAP/二进制、SOAP/XML 或 JSON 端点。您可以将 RIA 服务视为“LINQ to Web 服务”,尽管它可以与 AJAX 配合使用,但它实际上是针对 Silverlight 客户端的。
These are really different things. LINQ to XML is a way of trying to treat XML data as though it were relational, and querying on that data.
RIA services are a special type of WCF service that exposes data to tightly-coupled clients. They can have SOAP/binary, SOAP/XML, or JSON endpoints. You can think of RIA services as a "LINQ to web service", and though it will work with AJAX, it was really intended for a Silverlight client.