<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Not every query is an async query</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Not every query is an async query</description>
  <pubDate>Sun, 12 Apr 2026 01:35:44 -700</pubDate>
  <lastBuildDate>Fri, 25 Sep 2009 16:38:29 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1497</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Not every query is an async query : I just wanted to add that if you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1497&amp;PID=5488#5488</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1497<br /><strong>Posted:</strong> 25-Sep-2009 at 4:38pm<br /><br />I just wanted to add that if you do use an async query and the query can be satisfied from cache, that the call will never "go async" and will return results to your callback synchronously.&nbsp;&nbsp; It's usually better though, as Ward states, to control query execution and strategy through your code.]]>
   </description>
   <pubDate>Fri, 25 Sep 2009 16:38:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1497&amp;PID=5488#5488</guid>
  </item> 
  <item>
   <title>Not every query is an async query : A customer asks:   &amp;#034;I have...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1497&amp;PID=5486#5486</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=482" rel="nofollow">WardBell</a><br /><strong>Subject:</strong> 1497<br /><strong>Posted:</strong> 25-Sep-2009 at 2:51pm<br /><br /><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT face=Calibri><FONT size=3>A customer asks:</FONT></FONT></SPAN> <DIV>&nbsp;</DIV><DIV>"<FONT size=3><FONT face=Calibri>I have a question about retrieving entities from cache using DevForce Silverlight.&nbsp; I was wondering why you have to write an async query in order to retrieve cached entities?&nbsp; I figured since the cached data is already on the client, I can just access it using client side LINQ."</FONT></FONT></DIV><DIV><FONT size=3><FONT face=Calibri>&nbsp;</DIV><DIV><?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></FONT></FONT></DIV><DIV><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT face=Calibri><FONT size=3>Excellent question. </FONT></FONT></SPAN><FONT size=3><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT face=Calibri>The answer is: you can query the cache synchronously </FONT></SPAN><SPAN style="FONT-FAMILY: Wingdings; COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2; mso-symbol-font-family: Wingdings; mso-char-: symbol"><SPAN style="mso-symbol-font-family: Wingdings; mso-char-: symbol">J</SPAN></SPAN><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><O:P></O:P></SPAN></FONT></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><O:P><FONT size=3 face=Calibri>&nbsp;</FONT></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT face=Calibri><FONT size=3>Here is a little experiment&nbsp;using PrismExplorer.<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><O:P><FONT size=3 face=Calibri>&nbsp;</FONT></O:P></SPAN></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" ="MsoListParagraph"><SPAN style="FONT-FAMILY: Symbol; COLOR: #1f497d; mso-bidi-font-family: Symbol; mso-themecolor: dark2; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT face=Calibri><FONT size=3>Launch it<O:P></O:P></FONT></FONT></SPAN></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" ="MsoListParagraph"><SPAN style="FONT-FAMILY: Symbol; COLOR: #1f497d; mso-bidi-font-family: Symbol; mso-themecolor: dark2; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT face=Calibri><FONT size=3>Run the query “Get Customers with Orders in Oregon” query (this populates the cache with some customers and some orders)<O:P></O:P></FONT></FONT></SPAN></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" ="MsoListParagraph"><SPAN style="FONT-FAMILY: Symbol; COLOR: #1f497d; mso-bidi-font-family: Symbol; mso-themecolor: dark2; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT size=3 face=Calibri>Put breakpoint on line in “Infrastructure.Repository” class that reads:<BR></FONT></SPAN><SPAN style="FONT-FAMILY: 'Lucida C&#111;nsole'; FONT-SIZE: 10pt; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-highlight: yellow; mso-no-proof: yes; yellow: ">EntityManager.DefaultQueryStrategy = <SPAN style="COLOR: #2b91af">QueryStrategy</SPAN>.Normal;</SPAN><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><BR><FONT face=Calibri><FONT size=3>That’s line 31 in&nbsp;the version on my desktop.</FONT></FONT></SPAN></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" ="MsoListParagraph"><SPAN style="FONT-FAMILY: Symbol; COLOR: #1f497d; mso-bidi-font-family: Symbol; mso-themecolor: dark2; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT face=Calibri><FONT size=3>Back in the UI, select “Get Orders in Cache”<O:P></O:P></FONT></FONT></SPAN></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" ="MsoListParagraph"><SPAN style="FONT-FAMILY: Symbol; COLOR: #1f497d; mso-bidi-font-family: Symbol; mso-themecolor: dark2; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT face=Calibri><FONT size=3>It will break here<O:P></O:P></FONT></FONT></SPAN></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" ="MsoListParagraph"><SPAN style="FONT-FAMILY: Symbol; COLOR: #1f497d; mso-bidi-font-family: Symbol; mso-themecolor: dark2; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT face=Calibri><FONT size=3>Open the Immediate Window<O:P></O:P></FONT></FONT></SPAN></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1; mso-layout-grid-align: n&#111;ne" ="MsoListParagraph"><SPAN style="FONT-FAMILY: Symbol; COLOR: #1f497d; mso-bidi-font-family: Symbol; mso-themecolor: dark2; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT size=3><FONT face=Calibri>Enter “query”; you should see something like this:<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><BR></SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes">query<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes">{value(IdeaBlade.EntityModel.EntityQueryProxy`1&#091;DomainModel.Order&#093;)}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;</SPAN>&#091;IdeaBlade.EntityModel.EntityQuery&lt;DomainModel.Order&gt;&#093;: {value(IdeaBlade.EntityModel.EntityQueryProxy`1&#091;DomainModel.Order&#093;)}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>CommandTimeout: 0<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>ElementType: {DomainModel.Order}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>EntityManager: {DomainModel.DomainModelEntityManager}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>QueryableType: {DomainModel.Order}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>QueryStrategy: {<SPAN style="mso-highlight: yellow; yellow: ">IdeaBlade.EntityModel.QueryStrategy</SPAN>}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>Tag: null<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><O:P><FONT size=3 face=Calibri>&nbsp;</FONT></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT face=Calibri><FONT size=3>If you dig in, you will see that the QueryStrategy is CacheOnly<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><O:P><FONT size=3 face=Calibri>&nbsp;</FONT></O:P></SPAN></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" ="MsoListParagraph"><SPAN style="FONT-FAMILY: Symbol; COLOR: #1f497d; mso-bidi-font-family: Symbol; mso-themecolor: dark2; mso-fareast-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT size=3 face=Calibri>Enter “</FONT></SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes">EntityManager.ExecuteQuery(query)</SPAN><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT size=3><FONT face=Calibri>”; you should see something like this:<O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes">Count = 28<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>&#091;0&#093;: {DomainModel.Order}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>&#091;1&#093;: {DomainModel.Order}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>&#091;2&#093;: {DomainModel.Order}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>&#091;3&#093;: {DomainModel.Order}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>&#091;4&#093;: {DomainModel.Order}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>...<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>&#091;25&#093;: {DomainModel.Order}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>&#091;26&#093;: {DomainModel.Order}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.25in; mso-layout-grid-align: n&#111;ne" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt; mso-fareast-font-family: 'Times New Roman'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>&#091;27&#093;: {DomainModel.Order}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><O:P><FONT size=3 face=Calibri>&nbsp;</FONT></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT size=3><FONT face=Calibri>Yup. The query is executing immediately and synchronously.</P><DIV>&nbsp;</DIV><DIV>I’m taking advantage of the fact that I’ve pinned this query to CacheOnly. Had I not, and it tried to satisfy the query from the database, I would have received an exception.<O:P></O:P></FONT></FONT></SPAN></DIV><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><O:P><FONT size=3 face=Calibri>&nbsp;</FONT></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT size=3><FONT face=Calibri>One common tactic is to set the EntityManager.DefaultQueryStrategy to a CacheOnly strategy. Then DevForce will attempt to satisfy all queries <U>without</U> an explicit strategy from the cache. You can always take a query and change its strategy by saying “q.With(QueryStrategy)” . <O:P></O:P></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><O:P><FONT size=3 face=Calibri>&nbsp;</FONT></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2"><FONT size=3><FONT face=Calibri>Just make sure the EntityManager can do what you ask of it.<O:P></O:P></FONT></FONT></SPAN></P></DIV><span style="font-size:10px"><br /><br />Edited by WardBell - 25-Sep-2009 at 2:52pm</span>]]>
   </description>
   <pubDate>Fri, 25 Sep 2009 14:51:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1497&amp;PID=5486#5486</guid>
  </item> 
 </channel>
</rss>