<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>EF Extension Method Extravaganza Part I - ObjectStateEntry</title><link>http://blogs.msdn.com/b/dsimmons/archive/2008/01/16/ef-extension-method-extravaganza-part-i-objectstateentry.aspx</link><description>So I’ve begun drinking the kool-aide. Extension methods are frighteningly addictive and don’t even get me started on LINQ to Objects. Now I can take a class which is missing some functionality that would make it just right for a particular problem and</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Entity Framework and LINQ Extension Methods</title><link>http://blogs.msdn.com/b/dsimmons/archive/2008/01/16/ef-extension-method-extravaganza-part-i-objectstateentry.aspx#7295195</link><pubDate>Tue, 29 Jan 2008 04:17:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7295195</guid><dc:creator>Hot Topics</dc:creator><description>&lt;p&gt;Danny Simmons has been writing a slew of Extension methods which he shares in these three blog posts&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7295195" width="1" height="1"&gt;</description></item><item><title>EF Extension Methods Extravaganza Part III – Fun with LINQ to Objects</title><link>http://blogs.msdn.com/b/dsimmons/archive/2008/01/16/ef-extension-method-extravaganza-part-i-objectstateentry.aspx#7144100</link><pubDate>Fri, 18 Jan 2008 01:14:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7144100</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;In this previous post and its follow-on I shared a series of extension methods that I’ve been using to&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7144100" width="1" height="1"&gt;</description></item><item><title>re: EF Extension Method Extravaganza Part I - ObjectStateEntry</title><link>http://blogs.msdn.com/b/dsimmons/archive/2008/01/16/ef-extension-method-extravaganza-part-i-objectstateentry.aspx#7138230</link><pubDate>Thu, 17 Jan 2008 05:24:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7138230</guid><dc:creator>FrancoisTanguay</dc:creator><description>&lt;p&gt;Here's some other (A codeplex contrib project would be awesome):&lt;/p&gt;
&lt;p&gt;//Allows syntax similar to: foreach (Post post in blog.Posts.EnsureLoaded()) {...}&lt;/p&gt;
&lt;p&gt; public static T EnsureLoaded&amp;lt;T&amp;gt;(this T relatedEnd)&lt;/p&gt;
&lt;p&gt; &amp;nbsp;where T : IRelatedEnd&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp;if (!relatedEnd.IsLoaded)&lt;/p&gt;
&lt;p&gt; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;relatedEnd.Load();&lt;/p&gt;
&lt;p&gt; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp;return relatedEnd;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;//Allows: from blog in model.Blog.Include(&amp;quot;Posts&amp;quot;, &amp;quot;Contributors&amp;quot;)&lt;/p&gt;
&lt;p&gt;public static ObjectQuery&amp;lt;T&amp;gt; Include&amp;lt;T&amp;gt;(this ObjectQuery&amp;lt;T&amp;gt; query, params string[] paths)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp;foreach (string path in paths)&lt;/p&gt;
&lt;p&gt; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;query = query.Include(path);&lt;/p&gt;
&lt;p&gt; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp;return query;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7138230" width="1" height="1"&gt;</description></item><item><title>EF Extension Methods Extravaganza part II – Relationship Entry &amp; IRelatedEnd</title><link>http://blogs.msdn.com/b/dsimmons/archive/2008/01/16/ef-extension-method-extravaganza-part-i-objectstateentry.aspx#7136967</link><pubDate>Thu, 17 Jan 2008 03:16:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7136967</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;In my last post I shared a few extension methods that I’ve found useful when working with the EF. Here&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7136967" width="1" height="1"&gt;</description></item><item><title>EF Extension Methods Extravaganza part II – Relationship Entry &amp; IRelatedEnd</title><link>http://blogs.msdn.com/b/dsimmons/archive/2008/01/16/ef-extension-method-extravaganza-part-i-objectstateentry.aspx#7136856</link><pubDate>Thu, 17 Jan 2008 03:08:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7136856</guid><dc:creator>system.data.objects dev guy</dc:creator><description>&lt;p&gt;In my last post I shared a few extension methods that I’ve found useful when working with the EF. Here&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7136856" width="1" height="1"&gt;</description></item><item><title>EF Extension Methods Extravaganza part III – Fun with LINQ to Objects</title><link>http://blogs.msdn.com/b/dsimmons/archive/2008/01/16/ef-extension-method-extravaganza-part-i-objectstateentry.aspx#7136815</link><pubDate>Thu, 17 Jan 2008 03:05:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7136815</guid><dc:creator>system.data.objects dev guy</dc:creator><description>&lt;p&gt;In my last post I shared a few extension methods that I’ve found useful when working with the EF. Here&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7136815" width="1" height="1"&gt;</description></item><item><title>Data save &amp;raquo; EF Extension Method Extravaganza Part I - ObjectStateEntry</title><link>http://blogs.msdn.com/b/dsimmons/archive/2008/01/16/ef-extension-method-extravaganza-part-i-objectstateentry.aspx#7126089</link><pubDate>Wed, 16 Jan 2008 07:53:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7126089</guid><dc:creator>Data save » EF Extension Method Extravaganza Part I - ObjectStateEntry</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://datasave.co.cc/ef-extension-method-extravaganza-part-i-objectstateentry/"&gt;http://datasave.co.cc/ef-extension-method-extravaganza-part-i-objectstateentry/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7126089" width="1" height="1"&gt;</description></item></channel></rss>