Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 9244

Disable caching for LINQ queries in CRM 2011

$
0
0

I have a WinForm application which is making LINQ queries to a CRM 2011 application. When I run a query I am finding that caching is enabled by default so the application is not picking up changes made in CRM unless I restart the WinForm application.

I found one post which suggests caching can be disabled by updating the configuration file to include the section below but this does not seem to have any effect - any thoughts on what I am doing wrong or any alternative approaches.

 <configSections>   
    <section name="microsoft.xrm.client" type="Microsoft.Xrm.Client.Configuration.CrmSection, Microsoft.Xrm.Client"/>
  </configSections> 

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


Nigel T


Viewing all articles
Browse latest Browse all 9244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>