<?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 : Filtered Includes</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Filtered Includes</description>
  <pubDate>Mon, 13 Apr 2026 13:47:02 -700</pubDate>
  <lastBuildDate>Tue, 10 Apr 2012 10:49:21 -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=3379</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>Filtered Includes :   Hi Paul,Sorry for the delay.I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3379&amp;PID=13265#13265</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> 3379<br /><strong>Posted:</strong> 10-Apr-2012 at 10:49am<br /><br />Hi Paul,<div>&nbsp;</div><div>Sorry for the delay.</div><div>I moved your last question to the Cocktail forum.</div><div>&nbsp;</div><div>Silvio.</div>]]>
   </description>
   <pubDate>Tue, 10 Apr 2012 10:49:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3379&amp;PID=13265#13265</guid>
  </item> 
  <item>
   <title>Filtered Includes : Any input from anyone? Should...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3379&amp;PID=13259#13259</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=942" rel="nofollow">paul</a><br /><strong>Subject:</strong> 3379<br /><strong>Posted:</strong> 09-Apr-2012 at 6:23pm<br /><br />Any input from anyone? Should I cross-post to the Cocktail forum. I didn't want it to get lost after the holiday weekend. Thanks...]]>
   </description>
   <pubDate>Mon, 09 Apr 2012 18:23:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3379&amp;PID=13259#13259</guid>
  </item> 
  <item>
   <title>Filtered Includes :   Hi Paul,Unfortunatelly, you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3379&amp;PID=13245#13245</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> 3379<br /><strong>Posted:</strong> 06-Apr-2012 at 8:25am<br /><br />Hi Paul,<div>&nbsp;</div><div>Unfortunatelly, you won't be able to filter entities retrieved via Include.</div><div>However, a workaroud would be using select:</div><div>&nbsp;</div><div>var&nbsp;employees = Manager.Employees.Where(e =&gt; e.EmployeeId == employeeId)</div><div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Include(e =&gt; e.Person)</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Include(e =&gt; e.Person.Address)</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Include(e =&gt; e.Person.Address.Region)</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Select(e =&gt; new { Employee = e, </div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RegionLocalizeds = e.Person.Address.Region.RegionLocalizeds.Where(rl =&gt; rl.LanguageTypeId == CurrentLanguageTypeId))</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ToList()</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Select(emp =&gt; emp.Employee;</div></div><div>&nbsp;</div><div>&nbsp;</div><div>There is a forum post at&nbsp;<a href="http://www.ideablade.com/forum/forum_posts.asp?TID=2097&amp;PID=8208#8208" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=2097&amp;PID=8208#8208</a>&nbsp;that address the same issue.</div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 06 Apr 2012 08:25:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3379&amp;PID=13245#13245</guid>
  </item> 
  <item>
   <title>Filtered Includes : I know it isn&amp;#039;t possible...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3379&amp;PID=13244#13244</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=942" rel="nofollow">paul</a><br /><strong>Subject:</strong> 3379<br /><strong>Posted:</strong> 05-Apr-2012 at 8:26pm<br /><br />I know it isn't possible with EF right now but I was curious what other people have done. This is what my ideal code looks like but since EF doesn't support filtered includes it won't work.<div><br></div><div><div>IEntityQuery&lt;Model.Employee&gt; query = Manager</div><div>&nbsp; &nbsp; .Employees</div><div>&nbsp; &nbsp; .Where(e =&gt; e.EmployeeId == employeeId)</div><div>&nbsp; &nbsp; .Include(e =&gt; e.Person)</div><div>&nbsp; &nbsp; .Include(e =&gt; e.Person.Address)</div><div>&nbsp; &nbsp; .Include(e =&gt; e.Person.Address.Region)</div><div>&nbsp; &nbsp; .Include(e =&gt; e.Person.Address.Region.RegionLocalizeds.Where(rl =&gt; rl.LanguageTypeId == CurrentLanguageTypeId));</div></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 05 Apr 2012 20:26:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3379&amp;PID=13244#13244</guid>
  </item> 
 </channel>
</rss>