<?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 : OnFetching Bug?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : OnFetching Bug?</description>
  <pubDate>Sun, 12 Apr 2026 06:00:48 -700</pubDate>
  <lastBuildDate>Mon, 22 Feb 2010 12:39:31 -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=1643</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>OnFetching Bug? : Thank you </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1643&amp;PID=6241#6241</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=448" rel="nofollow">francois</a><br /><strong>Subject:</strong> 1643<br /><strong>Posted:</strong> 22-Feb-2010 at 12:39pm<br /><br />Thank you]]>
   </description>
   <pubDate>Mon, 22 Feb 2010 12:39:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1643&amp;PID=6241#6241</guid>
  </item> 
  <item>
   <title>OnFetching Bug? : The DataSourceExtension isn&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1643&amp;PID=6204#6204</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 1643<br /><strong>Posted:</strong> 15-Feb-2010 at 6:29pm<br /><br />The DataSourceExtension isn't available in the server-side Fetching interceptor, but in the client-side Fetching event handler<br>you can assign it (or add it) to the query's tag:<br><br>void _mgr_Fetching(object sender, EntityFetchingEventArgs e) {<br>&nbsp;&nbsp;&nbsp; e.Query.Tag = e.Query.EntityManager.DataSourceExtension;<br>}<br><br>That tag value will be available to you in the server-side interceptor:<br><br>class ServerFetching : IEntityServerFetching {<br>&nbsp; public void OnFetching(EntityServerFetchingEventArgs args) {<br>&nbsp;&nbsp;&nbsp; string tag = args.Query.Tag;<br>&nbsp;&nbsp;&nbsp; . . .<br><br><br>]]>
   </description>
   <pubDate>Mon, 15 Feb 2010 18:29:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1643&amp;PID=6204#6204</guid>
  </item> 
  <item>
   <title>OnFetching Bug? : Hi,  I&amp;#039;m trying to get...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1643&amp;PID=6192#6192</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=448" rel="nofollow">francois</a><br /><strong>Subject:</strong> 1643<br /><strong>Posted:</strong> 12-Feb-2010 at 12:36pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I'm trying to get the EntityManager for the current Query (e.Query.EntityManager) and it always return null. I want to use the DataSourceExtension to identify the current tenant so that I can "correct" the filter criteria. I don't know if it could be related to the fact that the call is done async from silverlight or something else. EntityManager.DefaultManager also does not work. It returns a EntityManager but for some reason it is always te wrong DataSourceExtention (seems cached or something, sometimes "" and sometimes the same as the default startup).</DIV><DIV>&nbsp;</DIV><DIV>I checked on the client, it does not make a difference if I call Query.ExecuteAsync&lt;T&gt; or EntityManager.ExecuteQueryAsync&lt;T&gt;, both results in the server Query.EntityManager being null and the DataSourceExtention&nbsp;is 100% correct on the client. </DIV><DIV>&nbsp;</DIV><DIV>Any Ideas?</DIV><DIV>&nbsp;</DIV><DIV>Is there another way to get the EntityManager in the OnFetching server event. </DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>Francois</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 12 Feb 2010 12:36:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1643&amp;PID=6192#6192</guid>
  </item> 
 </channel>
</rss>