<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx</link><description>In Northwind DB, if you want to load categories with products, you will use Include method: context.Categories.Include( &amp;quot;Products&amp;quot; ) But what I really find bad is the fact that Products is a string. When we use LINQ, we can&amp;#39;t understand</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1730910</link><pubDate>Thu, 08 Oct 2009 23:08:28 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1730910</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;I think it&amp;#39;s very hard to do it. You should look at &lt;a target="_blank" href="http://msmvps.com/blogs/matthieu/archive/2009/10/07/ef-include-with-where-clause.aspx"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1730910" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1729939</link><pubDate>Mon, 05 Oct 2009 15:53:22 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1729939</guid><dc:creator>Nelson</dc:creator><description>&lt;p&gt;This is really much better, but I&amp;#39;m trying to do something like:&lt;/p&gt;
&lt;p&gt;this.Context.Countries.Include(c =&amp;gt; c.MetroAreas.OrderBy(m =&amp;gt; m.Name)).Include(c =&amp;gt; c.Regions.OrderBy(r =&amp;gt; r.Name));&lt;/p&gt;
&lt;p&gt;And its coming up with:&lt;/p&gt;
&lt;p&gt;+		Error	{System.Windows.Ria.Data.EntityOperationException: Object reference not set to an instance of an object.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Windows.Ria.Data.HttpDomainClient.GetRequestResult(HttpDomainClientAsyncResult httpAsyncResult)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Windows.Ria.Data.HttpDomainClient.EndQueryCore(IAsyncResult asyncResult)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Windows.Ria.Data.DomainClient.EndQuery(IAsyncResult asyncResult)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Windows.Ria.Data.DomainContext.CompleteLoad(IAsyncResult asyncResult)}	System.Exception {System.Windows.Ria.Data.EntityOperationException}&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1729939" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1695702</link><pubDate>Wed, 17 Jun 2009 12:27:23 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1695702</guid><dc:creator>DonSleza4e</dc:creator><description>&lt;p&gt;Thanks, thats I looking for!&lt;/p&gt;
&lt;p&gt;Amazing!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1695702" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1695700</link><pubDate>Wed, 17 Jun 2009 11:57:07 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1695700</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;You can do :&lt;/p&gt;
&lt;p&gt;context.Products.Include(p =&amp;gt; p.Category).Include(p =&amp;gt; p.OrderDetails);&lt;/p&gt;
&lt;p&gt;If you want more level, you should look at &lt;a target="_blank" href="http://msmvps.com/blogs/matthieu/archive/2008/06/06/entity-framework-include-with-func-next.aspx"&gt;it&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1695700" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1695699</link><pubDate>Wed, 17 Jun 2009 11:17:47 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1695699</guid><dc:creator>DonSleza4e</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What about including several tables?&lt;/p&gt;
&lt;p&gt;for example, load shops and categories with products&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1695699" width="1" height="1"&gt;</description></item><item><title>What about DataLoadOptions for Entity Framework ObjectContext?</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1695479</link><pubDate>Mon, 15 Jun 2009 17:28:08 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1695479</guid><dc:creator>VS2010学习</dc:creator><description>&lt;p&gt;What about DataLoadOptions for Entity Framework ObjectContext? I think the proper way to start this post&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1695479" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1654163</link><pubDate>Fri, 14 Nov 2008 20:51:48 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1654163</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;Hi Alessandro,&lt;/p&gt;
&lt;p&gt;In VB, you must change it like this:&lt;/p&gt;
&lt;div style="font-size:10pt;background:white;color:black;font-family:Courier New;"&gt;
&lt;p style="margin:0px;"&gt;&lt;span style="color:#0000ff;"&gt;Module&lt;/span&gt; ObjectQueryExtension&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Extension()&amp;gt; _&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000ff;"&gt;Function&lt;/span&gt; Include(&lt;span style="color:#0000ff;"&gt;Of&lt;/span&gt; T)(&lt;span style="color:#0000ff;"&gt;ByVal&lt;/span&gt; mainQuery &lt;span style="color:#0000ff;"&gt;As&lt;/span&gt; ObjectQuery(&lt;span style="color:#0000ff;"&gt;Of&lt;/span&gt; T), &lt;span style="color:#0000ff;"&gt;ByVal&lt;/span&gt; subSelector &lt;span style="color:#0000ff;"&gt;As&lt;/span&gt; Expression (&lt;span style="color:blue;"&gt;Of&lt;/span&gt; Func (&lt;span style="color:blue;"&gt;Of&lt;/span&gt; T, &lt;span style="color:blue;"&gt;Object&lt;/span&gt;)))&lt;/p&gt;
&lt;div style="font-size:10pt;background:white;color:black;font-family:Courier New;"&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;Return&lt;/span&gt; mainQuery.Include(&lt;span style="color:blue;"&gt;CType&lt;/span&gt;(&lt;span style="color:blue;"&gt;CType&lt;/span&gt;(&lt;span style="color:blue;"&gt;CType&lt;/span&gt;(subSelector.Body, UnaryExpression).Operand, MemberExpression).Member, PropertyInfo).Name)&lt;/p&gt;
&lt;/div&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000ff;"&gt;End&lt;/span&gt; &lt;span style="color:#0000ff;"&gt;Function&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&lt;span style="color:#0000ff;"&gt;End&lt;/span&gt; &lt;span style="color:#0000ff;"&gt;Module&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1654163" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1654101</link><pubDate>Fri, 14 Nov 2008 08:46:36 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1654101</guid><dc:creator>Alessandro Del Sole [VB MVP]</dc:creator><description>&lt;p&gt;Hi, I&amp;#39;m trying to convert the extension method above into VB. But I get an exception. Here&amp;#39;s my VB translation:&lt;/p&gt;
&lt;p&gt;&amp;lt;Extension()&amp;gt; Module Module1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Extension()&amp;gt; Function Include(Of T)(ByVal mainQuery As ObjectQuery(Of T), ByVal subSelector As Expressions.BLOCKED EXPRESSION&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Function&lt;/p&gt;
&lt;p&gt;End Module&lt;/p&gt;
&lt;p&gt;The exception I get is that an UnaryExpression cannot be converted into MemberExpression. Any suggestions?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1654101" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1651865</link><pubDate>Fri, 24 Oct 2008 12:29:18 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1651865</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;@eXcess : I also think so but I did no test. I just want to remind you that it&amp;#39;s a POC. &lt;/p&gt;
&lt;p&gt;Martin should try it in a production application this week. I am very interested to know if it is usable in a real world application.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1651865" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1651864</link><pubDate>Fri, 24 Oct 2008 12:18:04 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1651864</guid><dc:creator>eXcess</dc:creator><description>&lt;p&gt;It does use Reflection though, but that won&amp;#39;t cause a performance drop I suppose?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1651864" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1650260</link><pubDate>Thu, 09 Oct 2008 07:04:03 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1650260</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;My Include method is an extension method (keyword this before the first parameter).&lt;/p&gt;
&lt;p&gt;Moreover, when you do: c =&amp;gt; c.Products (which is a lambda expression), you have an Expression&amp;lt;Func&amp;lt;Category, object&amp;gt; and so I can treat it.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1650260" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1650028</link><pubDate>Tue, 07 Oct 2008 19:39:32 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1650028</guid><dc:creator>Jared Wein</dc:creator><description>&lt;p&gt;Hi Matthieu,&lt;/p&gt;
&lt;p&gt;Can you explain how this static class and it&amp;#39;s static method are interpreted in to the framework to allow this behavior? &lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any use of the partial or override keyword here.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1650028" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1644291</link><pubDate>Mon, 11 Aug 2008 19:06:23 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1644291</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;Like this &lt;a rel="nofollow" target="_new" href="http://msmvps.com/blogs/matthieu/archive/2008/06/06/entity-framework-include-with-func-next.aspx"&gt;msmvps.com/.../entity-framework-include-with-func-next.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1644291" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1644290</link><pubDate>Mon, 11 Aug 2008 19:01:53 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1644290</guid><dc:creator>Robert</dc:creator><description>&lt;p&gt;How would you do a nested includes, something like getting the manufacturer from a product.&lt;/p&gt;
&lt;p&gt;Where I would just write .Include(&amp;quot;Products&amp;quot;).Include(&amp;quot;Products.Manufacturer&amp;quot;);&lt;/p&gt;
&lt;p&gt;context.Categories.Include(c =&amp;gt; c.Products).Include(c.Products.Any(p =&amp;gt; p.Manufacturer);&lt;/p&gt;
&lt;p&gt;How would you do that?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1644290" width="1" height="1"&gt;</description></item><item><title>Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1643722</link><pubDate>Tue, 29 Jul 2008 12:15:21 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1643722</guid><dc:creator>Jiří {x2} Činčura</dc:creator><description>&lt;p&gt;Really good extension method. &lt;a rel="nofollow" target="_new" href="http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.asp"&gt;msmvps.com/.../entityframework-include-with-func.asp&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1643722" width="1" height="1"&gt;</description></item><item><title>Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1642529</link><pubDate>Tue, 29 Jul 2008 12:14:55 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1642529</guid><dc:creator>Jiří {x2} Činčura</dc:creator><description>&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx"&gt;msmvps.com/.../entityframework-include-with-func.aspx&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1642529" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1641211</link><pubDate>Thu, 17 Jul 2008 12:02:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1641211</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;First, Include is an extension method. &lt;/p&gt;
&lt;p&gt;So you need to add the using of the ObjectQueryExtension in your file which will use the Include method.&lt;/p&gt;
&lt;p&gt;Moreover, Include is not an extension method for entity class but for ObjectQuery&amp;lt;T&amp;gt;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1641211" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1641209</link><pubDate>Thu, 17 Jul 2008 11:53:24 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1641209</guid><dc:creator>Nilotpal</dc:creator><description>&lt;p&gt;I can&amp;#39;t see the include() method in my entity class... Why I wonder... my email is nilotpal.das@microsoft.com would you be able to help...?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1641209" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1633692</link><pubDate>Tue, 10 Jun 2008 19:34:21 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1633692</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;&lt;a target="_blank" href="http://blogs.msdn.com/dsimmons"&gt;Daniel Simmons&lt;/a&gt; propose what is probably the best way for you:&lt;/p&gt;
&lt;div style="FONT-SIZE:10pt;BACKGROUND:white;COLOR:black;FONT-FAMILY:Courier New;"&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="color:#2b91af;"&gt;Patient&lt;/span&gt; AttachContacts(&lt;span style="color:#2b91af;"&gt;Patient&lt;/span&gt; patient, &lt;span style="color:#2b91af;"&gt;IEnumerable&lt;/span&gt;&amp;lt;&lt;span style="color:#2b91af;"&gt;PatientContact&lt;/span&gt;&amp;gt; contacts)&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;{&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; patient.PATIENTCONTACTS.Attach(contacts);&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000ff;"&gt;return&lt;/span&gt; patient;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;}&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="FONT-SIZE:10pt;BACKGROUND:white;COLOR:black;FONT-FAMILY:Courier New;"&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="color:#0000ff;"&gt;var&lt;/span&gt; q = &lt;span style="color:#0000ff;"&gt;from&lt;/span&gt; patient &lt;span style="color:#0000ff;"&gt;in&lt;/span&gt; datacontext.PATIENTS&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000ff;"&gt;select&lt;/span&gt; &lt;span style="color:#0000ff;"&gt;new&lt;/span&gt; { Patient = patient, PatientActiveContacts = patient.PATIENTCONTACTS.Where(c =&amp;gt; c.ISACTIVE == &lt;span style="color:#a31515;"&gt;&amp;quot;T&amp;quot;&lt;/span&gt;) };&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="color:#0000ff;"&gt;var&lt;/span&gt; fullQuery = &lt;span style="color:#0000ff;"&gt;from&lt;/span&gt; anonType &lt;span style="color:#0000ff;"&gt;in&lt;/span&gt; q.AsEnumerable()&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#0000ff;"&gt;select&lt;/span&gt; AttachContacts(anonType.Patient, anonType.PatientActiveContacts);&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1633692" width="1" height="1"&gt;</description></item><item><title>re: Entity Framework Include with Func</title><link>http://msmvps.com/blogs/matthieu/archive/2008/06/06/entityframework-include-with-func.aspx#1633607</link><pubDate>Tue, 10 Jun 2008 13:28:10 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1633607</guid><dc:creator>Matthieu MEZIL</dc:creator><description>&lt;p&gt;Else, of course, you can create a type with Patient and PatientActiveContacts properties and use the first query without anonymous type.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1633607" width="1" height="1"&gt;</description></item></channel></rss>