我的 crm 2011 缓存有问题。我不需要它,但我不知道如何禁用它。
首先我生成这个:
然后我有以下代码:
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/