<?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 : Query Strategy Not working??</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Query Strategy Not working??</description>
  <pubDate>Sun, 12 Apr 2026 17:32:52 -700</pubDate>
  <lastBuildDate>Wed, 09 Feb 2011 17:10:49 -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=2493</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>Query Strategy Not working?? : Hi jipock,  I tried reproducing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9912#9912</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2493<br /><strong>Posted:</strong> 09-Feb-2011 at 5:10pm<br /><br />Hi jipock,<DIV>&nbsp;</DIV><DIV>I tried reproducing your issue, but was not able to.</DIV><DIV>&nbsp;</DIV><DIV>As smi-mark mentioned, it might be that you are using a different EM. (Are you working with multiple Ems?)</DIV><DIV>&nbsp;</DIV><DIV>If that's not the case, can you provide a reproducible test sample?</DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Wed, 09 Feb 2011 17:10:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9912#9912</guid>
  </item> 
  <item>
   <title>Query Strategy Not working?? : Is DataStore.Instance.Entities...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9899#9899</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2493<br /><strong>Posted:</strong> 08-Feb-2011 at 4:49pm<br /><br />Is DataStore.Instance.Entities always pointing to MyEntityManager<b><i>?</i></b>The only reason I could think of it not working would be a different EntityManager. You could test this by doing:<br><br>MyEntityManager.MyObjects.Where(qu =&gt; qu.Id = x).With(QueryStrategy.DataSourceOnly);<br><br><br>If this still returns the cached copy, then there is an issue somewhere<br>]]>
   </description>
   <pubDate>Tue, 08 Feb 2011 16:49:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9899#9899</guid>
  </item> 
  <item>
   <title>Query Strategy Not working?? : A fair question.   Essentially...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9895#9895</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1019" rel="nofollow">jipock</a><br /><strong>Subject:</strong> 2493<br /><strong>Posted:</strong> 08-Feb-2011 at 1:41pm<br /><br /><P>A fair question. </P><DIV></DIV><DIV>Essentially it works like this: </DIV><DIV>&nbsp;</DIV><DIV>1) User clicks a button.</DIV><DIV>2) ChildWindow opens up. </DIV><DIV>3) I have a query (var q = MyEntityManager.MyObjects.Where(qu =&gt; qu.Id = x); ) is executed. An ObservableCollection is populated based upon the results of the query and put into a list. </DIV><DIV>4) User updates the list. </DIV><DIV>5) User clicks Save. </DIV><DIV>6) MyEntityManager.SaveChangesAsync() is fired. </DIV><DIV>7) When step 6 is finished, the Child Window closes. </DIV><DIV>8) I use a SQL Statement in Management studio to update a value in MyObjects table where qu.Id = x. The value is different than that which was entered in step 4. </DIV><DIV>8) User Repeats step 1. Steps 2 and 3 run. </DIV><DIV>9) The list reflects the value that the user originally put in, NOt the value manually added in the database. </DIV><DIV>&nbsp;</DIV><DIV>Note, this appears to be sporatic - I didn't experience this, this AM. </DIV>]]>
   </description>
   <pubDate>Tue, 08 Feb 2011 13:41:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9895#9895</guid>
  </item> 
  <item>
   <title>Query Strategy Not working?? :  Even though you are specifying...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9888#9888</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2493<br /><strong>Posted:</strong> 07-Feb-2011 at 2:07pm<br /><br />Even though you are specifying a query strategy, do you have some mechanism in the client to actually refresh the data? Otherwise how does it know that there is new data available?<br><br>What I mean by this is, even though you have the query strategy set, that doesn't stop DevForce from caching. Until you actually execute the query again, it will used what was cached.<br><span style="font-size:10px"><br /><br />Edited by smi-mark - 07-Feb-2011 at 5:15pm</span>]]>
   </description>
   <pubDate>Mon, 07 Feb 2011 14:07:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9888#9888</guid>
  </item> 
  <item>
   <title>Query Strategy Not working?? : A quick note - When User A exits...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9887#9887</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1019" rel="nofollow">jipock</a><br /><strong>Subject:</strong> 2493<br /><strong>Posted:</strong> 07-Feb-2011 at 1:06pm<br /><br />A quick note - When User A exits the app and re-starts the app, I see all of the changes.<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 07 Feb 2011 13:06:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9887#9887</guid>
  </item> 
  <item>
   <title>Query Strategy Not working?? : Good Afternoon,   I&amp;#039;m experiencing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9886#9886</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1019" rel="nofollow">jipock</a><br /><strong>Subject:</strong> 2493<br /><strong>Posted:</strong> 07-Feb-2011 at 1:05pm<br /><br />Good Afternoon, <DIV>&nbsp;</DIV><DIV>I'm experiencing an issue regarding saving and retrieving values from a database. Please note, I don't really want ANY caching involved: I want this app to only look at the database.. Nothing else.. (Caching I'll implement later)</DIV><DIV>&nbsp;</DIV><DIV>I have my application built up and I have two users running simultaneously. I'm seeing that some User A's Changes are not being seen by User B's changes at all...&nbsp; "This.. Is bad.." </DIV><DIV>&nbsp;</DIV><DIV>My first thought was, "My Query Strategy isn't right." But, it seems right to me...</DIV><DIV>&nbsp;</DIV><DIV>My Entity Manager has the following: </DIV><DIV><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><P>DataStore</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.Instance.Entities.DefaultQueryStrategy = </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>new</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>QueryStrategy</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>(</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>FetchStrategy</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.DataSourceOnly, </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>MergeStrategy</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>.OverwriteChanges);</P><DIV></DIV><DIV><DIV>I don't specify (to my knowledge) anything special in my Entities.SaveChangesAsync() calls. </DIV><DIV>&nbsp;</DIV><DIV>Is there something else I need to do?</DIV><DIV>&nbsp;</DIV><DIV>-Jason</DIV></DIV></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Mon, 07 Feb 2011 13:05:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2493&amp;PID=9886#9886</guid>
  </item> 
 </channel>
</rss>