CRM 2011 OrganizationServiceProxy与OrganizationServiceContext [英] CRM 2011 OrganizationServiceProxy vs OrganizationServiceContext
问题描述
我正在阅读 MS CRM 2011 SDK 文档,并看到两种访问实体的方法:
OrganizationServiceContext
或 OrganizationServiceProxy
。
I am reading through the MS CRM 2011 SDK docs and see two ways for accessing entities:
OrganizationServiceContext
or OrganizationServiceProxy
.
为什么我会选择一种方法而不是另一种方法?在这一点上,SDK的设计注意事项还不是很清楚。
Why would I choose one method over another? The SDK isn't really clear on design considerations on this point.
推荐答案
IOrganizationService 读写数据和元数据是您与CRM系统的连接。
IOrganizationService is your connection to the CRM system.
在Microsoft Dynamics CRM 2011中,访问组织的数据和元数据的主要Web服务是IOrganizationService Web服务。
In Microsoft Dynamics CRM 2011, the primary Web service accessing data and metadata for your organization is the IOrganizationService Web service.
类 OrganizationServiceContext 用作数据上下文的基类,该数据上下文是在使用早期绑定实体类时创建的。请参阅如何使用组织服务上下文类。它使用IOrganizationService读写数据和元数据作为基础连接。
The class OrganizationServiceContext is used as the base class for the data context which is created when you are using early bound entity classes. See how to Use the Organization Service Context Class. It uses an IOrganizationService as the underlying connection.
这篇关于CRM 2011 OrganizationServiceProxy与OrganizationServiceContext的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!