我有crm 2011緩存問題。我不需要它,但我不知道如何禁用它。如何禁用CRM 2011 Xrm緩存?
首先我生成這樣的:
CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration」 /輸出:Outputcs /URL: HTTPS://crmaddress/XRMServices/2011/Organization.svc /用戶名:USR /密碼:PW /命名空間: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();
}
我該怎麼做才能關閉緩存?