<?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 : Problem with property interceptors and queries</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Problem with property interceptors and queries</description>
  <pubDate>Tue, 12 May 2026 22:30:01 -700</pubDate>
  <lastBuildDate>Wed, 27 Feb 2013 08:40:38 -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=4007</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>Problem with property interceptors and queries : If you&amp;#039;re queryingDataSourceAndCache,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4007&amp;PID=15926#15926</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> 4007<br /><strong>Posted:</strong> 27-Feb-2013 at 8:40am<br /><br />If you're querying&nbsp;<span style=": rgb251, 251, 253;">DataSourceAndCache, either value will work.</span>]]>
   </description>
   <pubDate>Wed, 27 Feb 2013 08:40:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4007&amp;PID=15926#15926</guid>
  </item> 
  <item>
   <title>Problem with property interceptors and queries : Thank youforassistance very much.What...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4007&amp;PID=15923#15923</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1712" rel="nofollow">MaksimK</a><br /><strong>Subject:</strong> 4007<br /><strong>Posted:</strong> 27-Feb-2013 at 3:51am<br /><br />Thank you&nbsp;for&nbsp;assistance very much.&nbsp;<div><br></div><div>What filter condition must be used in the first case (original or displayed value)?</div>]]>
   </description>
   <pubDate>Wed, 27 Feb 2013 03:51:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4007&amp;PID=15923#15923</guid>
  </item> 
  <item>
   <title>Problem with property interceptors and queries : MaksimK,  Because you are changing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4007&amp;PID=15919#15919</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> 4007<br /><strong>Posted:</strong> 26-Feb-2013 at 10:57am<br /><br />MaksimK,<br /><br />Because you are changing the property value, a query against the DataSource will have different results then a query against the cache.<br />The default FetchStrategy is Optimized/DataSourceThenCache and that's why you aren't getting any results.<br /><br />The options are:<br />1) Change the query's FetchStrategy to DataSourceAndCache;<br /><br />2) query using DefaultQueryStrategy (DataSourceThenCache) on both values; (where qry.MyProp == originalValue || qry.MyProp == displayValue )<br /><br />you could also:<br />3) query against the datasource only (qry.With(QueryStrategy.DataSourceOnly) using the original value;<br /><br />4) query against the cache only (qry.With(QueryStrategy.CacheOnly) using the display value;<br /><br />You will find more information about query strategies at <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/query-strategy" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/query-strategy</a>.<br /><span style="font-size:10px"><br /><br />Edited by sbelini - 26-Feb-2013 at 11:06am</span>]]>
   </description>
   <pubDate>Tue, 26 Feb 2013 10:57:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4007&amp;PID=15919#15919</guid>
  </item> 
  <item>
   <title>Problem with property interceptors and queries : I have the following problem.I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4007&amp;PID=15914#15914</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1712" rel="nofollow">MaksimK</a><br /><strong>Subject:</strong> 4007<br /><strong>Posted:</strong> 25-Feb-2013 at 11:58pm<br /><br />I have the following problem.<div><br></div><div>I am added the following&nbsp;property interceptor, that works fine</div><div><br></div><div><div>&nbsp; &nbsp; &#091;IbCore.AfterGet(EntityPropertyNames.MyProp)&#093;</div><div>&nbsp; &nbsp; public void MyProp_AfterGet(IbCore.PropertyInterceptorArgs&lt;MyClass, String&gt; args) {</div><div>&nbsp; &nbsp; &nbsp; var value = args.Value;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (!String.IsNullOrEmpty(value))&nbsp;</div><div>&nbsp; &nbsp; &nbsp; { args.Value = GetDisplayValue(value);</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div></div><div><br></div><div>and in SL I use the query with filter on this property</div><div><br></div><div>qry = from obj in MyData.MyClassContainer</div><div>where qry.MyProp == "xxx"</div><div><br></div><div>The query result is always empty whether I use for filtering&nbsp;<span style="line-height: 1.4;">("xxx")</span><span style="line-height: 1.4;">&nbsp;"display" value or original "stored" value</span><span style="line-height: 1.4;">. What you can propose?</span></div>]]>
   </description>
   <pubDate>Mon, 25 Feb 2013 23:58:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4007&amp;PID=15914#15914</guid>
  </item> 
 </channel>
</rss>