通过 SOAP 使用 RIA 服务更新数据

发布于 2024-09-28 09:07:14 字数 433 浏览 9 评论 0原文

我有一个 SL 应用程序,它使用 RIA 和域服务进行数据访问。我已将其修改为适用于 SOAP,以便任何其他应用程序都可以使用该服务。

在 Windows 客户端上,我可以毫无问题地查询数据。但我需要进行一些更新和插入。您可能知道,通过 SOAP 的 RIA 服务,所有插入、更新、删除方法都是不可见的。我的理解是,这是由域服务处理的,我们需要做的就是调用提交更改。

除了使用 [Invoke] 属性和直接更新数据的方法之外,还有其他方法可以利用域服务从客户端实际执行更新操作吗? 例如 私有 userDomainContext 上下文 = 新 userDomainContext;

context.Users.Add(用户);

我似乎无法找到从客户端执行此操作的方法。

这是正确的方法还是在通过 SOAP 使用 RIA 时需要遵循不同的模式。

科迪。

I have an SL Application which uses RIA and Domain services for data access. I have modified this to work on SOAP so any other applications can use the service.

On a Windows client I can query data without a problem. But I need to make some update and inserts. As you may know all insert, update, delete methods are not visible over wire through RIA services for SOAP. My understanding is that this is handled by the Domain service and all we need to do is call Submit changes.

Apart from using an [Invoke] attribute and having a method to directly update data, is there any other way I can utilize Domain services to actually do the update operations from the client side.
E.g
private userDomainContext context = new userDomainContext;

context.Users.Add(user);

I can't seem to find a way to do this from the client side.

Is this the right way or is there a different pattern to be following when using RIA over SOAP.

Kodi.

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

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

发布评论

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

评论(1

两相知 2024-10-05 09:07:14

本文,我将演示如何使用 SOAP 端点从 WPF 和 Windows Phone 7 客户端执行 CRUD 操作。

它应该对你有帮助。

In this article, I am demonstrating how to do CRUD operations from a WPF and a Windows Phone 7 clients using the SOAP endpoint.

It should help you.

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