IOrganizationService更新实体正确的方法

编程入门 行业动态 更新时间:2024-10-10 15:25:16
本文介绍了IOrganizationService更新实体正确的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有从C#中看看更新的最佳方法/检索实体。 。我已经通过MSDN文档,但读不确定该走哪条路/时,使用这两种方法

I'm having a look at the best way of updating/retrieve entities from within C#. I've had a read through the MSDN documentation but unsure which way to go/when to use either method.

所以,我的问题:

我应该使用:

  • IOrganizationService.Update()更新和直接的实体;或
  • IOrganization.Execute()并创建一个更新请求

  • IOrganizationService.Update() and update the entity directly; or
  • IOrganization.Execute() and create an update request

如果答案是这取决于',有什么情况需要哪种方法?

And if the answer is 'it depends', what situation warrants which method?

感谢

推荐答案

第一,执行一个UpdateRequest的产生同样的结果。

First of all both Update and Execute of an UpdateRequest produce the same result.

的主要区别在于,一个UpdateRequest可以使用ExecuteMultipleRequest分批

The main difference is that an UpdateRequest can be batched using the ExecuteMultipleRequest

更多推荐

IOrganizationService更新实体正确的方法

本文发布于:2023-10-10 22:10:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1479903.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:实体   正确   方法   IOrganizationService

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!