gpt4 book ai didi

caching - 如何禁用 CRM 2011 Xrm 缓存?

转载 作者:行者123 更新时间:2023-12-02 21:04:29 25 4
gpt4 key购买 nike

我的 crm 2011 缓存有问题。我不需要它,但我不知道如何禁用它。

首先我生成这个:

CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration" /out:Outputcs /url:https://crmaddress/XRMServices/2011/Organization.svc /username:usr/password:pw /namespace:ns/serviceContextName:XrmServiceContext

然后我有以下代码:

   private XrmServiceContext _crmService;

public CrmWS()
{
CrmConnection _connection = new CrmConnection();
_connection.ServiceUri = new Uri("https://url");

ClientCredentials credentials = new ClientCredentials();
credentials.Windows.ClientCredential = new NetworkCredential("1","2","3");
_connection.ClientCredentials = credentials;
_connection.ClientCredentials.UserName.UserName = "1";
_connection.ClientCredentials.UserName.Password = "2";
_crmService = new XrmServiceContext(_connection);

var l = _crmService.EntitySet.where(m => m.name == "a").ToList();
}

我应该怎么做才能关闭缓存?

最佳答案

在配置文件中指定服务:

  <microsoft.xrm.client>   
<services>
<add name="Xrm" type="Microsoft.Xrm.Client.Services.OrganizationService, Microsoft.Xrm.Client"/>
</services>
</microsoft.xrm.client>

关于caching - 如何禁用 CRM 2011 Xrm 缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8309197/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com