<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gary Pretty's Blog &#187; .NET 4.0</title>
	<atom:link href="http://blog.garypretty.co.uk/index.php/tag/net-40/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.garypretty.co.uk</link>
	<description>.Net Development &#38; General Tech Related News</description>
	<lastBuildDate>Sat, 04 Feb 2012 00:32:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Visual Studio 2010 and .Net 4.0 Beta 2 Download Available</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/10/20/visual-studio-2010-and-net-4-0-beta-2-download-available/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/10/20/visual-studio-2010-and-net-4-0-beta-2-download-available/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 09:21:37 +0000</pubDate>
		<dc:creator>Gary Pretty</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Betas]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[beta 2]]></category>
		<category><![CDATA[visual studio 2010]]></category>
		<category><![CDATA[vs2010]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/?p=233</guid>
		<description><![CDATA[Visual Studio 2010 and .Net 4.0 Beta 2 has now been released to members of MSDN, with a public download available from Wednesday. Beta 2 brings many improvements to the table, including improvements in Sharepoint, WPF, ASP.NET, WinForms, as well as improvements to the core IDE and testing tools. I saw some of these IDE improvements at &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/10/20/visual-studio-2010-and-net-4-0-beta-2-download-available/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Visual Studio 2010 and .Net 4.0 Beta 2 has now been released to members of MSDN, with a public download available from Wednesday.</p>
<p>Beta 2 brings many improvements to the table, including improvements in Sharepoint, WPF, ASP.NET, WinForms, as well as improvements to the core IDE and testing tools. I saw some of these IDE improvements at an event with Scott Gu in Manchester a couple of weeks ago and they look pretty cool.</p>
<p>Visual Studio now comes in several flavours, namely Premium, Professional and Ultimate and the good news is that TFS 2010 comes out of the box with all three.  Apparently it only takes 20 minutes to setup source control, bug and issue tracking and automated build with it.</p>
<p>Finally, another great piece of news is that this release also ships with a Go-live license, so this can be used for production projects if you wish <img src='http://blog.garypretty.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you are a member of MSDN and want to download the beta now, you <a href="http://go.microsoft.com/fwlink/?LinkID=151797">can get it from here</a>.</p>
<p>For more information on the release visit Scott Gu&#8217;s blog where you he has started a <a href="http://weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4-series.aspx">series of posts on the new features in 2010 Beta 2</a>.</p>
<p>Have any of you been using Beta 1? Will you be using Beta 2? What do you think of the way 2010 and .Net 4.0 are shaping up?</p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/.NET+4.0' rel='tag' target='_self'>.NET 4.0</a>, <a class='technorati-link' href='http://technorati.com/tag/beta+2' rel='tag' target='_self'>beta 2</a>, <a class='technorati-link' href='http://technorati.com/tag/visual+studio+2010' rel='tag' target='_self'>visual studio 2010</a>, <a class='technorati-link' href='http://technorati.com/tag/vs2010' rel='tag' target='_self'>vs2010</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.garypretty.co.uk/index.php/2009/10/20/visual-studio-2010-and-net-4-0-beta-2-download-available/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Entity Framework v2 Articles</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/08/25/entity-framework-v2-articles/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/08/25/entity-framework-v2-articles/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 09:00:25 +0000</pubDate>
		<dc:creator>Gary Pretty</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[ef 4]]></category>
		<category><![CDATA[ef v2]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/index.php/2009/08/25/entity-framework-v2-articles/</guid>
		<description><![CDATA[There has been a lot of information being passed around recently about the changes being introduced in the second major release of Microsoft&#8217;s Entity Framework, so I thought it might be a good idea to get a list of articles together on the subject that I have found useful. If you know of any more &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/08/25/entity-framework-v2-articles/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>There has been a lot of information being passed around recently about the changes being introduced in the second major release of Microsoft&#8217;s Entity Framework, so I thought it might be a good idea to get a list of articles together on the subject that I have found useful.</p>
<p>If you know of any more good articles you have found yourself, let me know!</p>
<p>Enjoy!</p>
<p><strong><a href="http://msdn.microsoft.com/en-us/library/bb399572(VS.100).aspx" target="_blank">The ADO.Net Entity Framework (2010) (MSDN)</a></strong> &#8211; If you don&#8217;t know or are unsure of what the Entity Framework is, then this might be a good place to start.  It provides a good overview with links to more articles going into details in specific areas.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/bb399572(VS.100).aspx" target="_blank">Visit Site</a></p>
<p><a href="http://www.slideshare.net/KulveerSingh/whats-new-in-entity-framework-4" target="_blank"><strong>What&#8217;s New In Entity Framework 4 (Slides)</strong></a> &#8211; For those of you who are familiar with the first version of the Entity Framework in .Net 3.5 SP1, but have not yet delved into the next release, these slides give an overview of what has changed and what has been introduced.</p>
<p><a href="http://www.slideshare.net/KulveerSingh/whats-new-in-entity-framework-4" target="_blank">Visit Site</a></p>
<p><a href="blog.garypretty.co.uk/.../tutorial-entity-framework-v20-model-first-using-visual-studio-2010-and-net-40/" target="_blank"><strong>TUTORIAL: Model First using Entity Framework 4 and Visual Studio 2010</strong></a> &#8211; This is a tutorial I wrote a while back for those with the Visual Studio 2010 beta who wanted to see the new model first functionality introduced in EF v2.</p>
<p><a href="blog.garypretty.co.uk/.../tutorial-entity-framework-v20-model-first-using-visual-studio-2010-and-net-40/" target="_blank">Visit Site</a></p>
<p><strong><a href="http://msdn.microsoft.com/en-gb/magazine/ee236639.aspx" target="_blank">Entity Framework v2 and Data Access Architecture Best Practices</a></strong> &#8211; Some design patterns and development style discussion for when using the EF v2 and Visual Studio 2010.</p>
<p><a href="http://msdn.microsoft.com/en-gb/magazine/ee236639.aspx" target="_blank">Visit Site</a></p>
<p><strong><a href="http://msdn.microsoft.com/en-gb/magazine/ee321569.aspx" target="_blank">N-Tier Application Patterns with Entity Framework v2</a></strong> &#8211; A good article regarding designing N-Tier applications with EF v2, using .Net Framework 4, Visual Studio 2010 and WCF.</p>
<p><a href="http://msdn.microsoft.com/en-gb/magazine/ee321569.aspx" target="_blank">Visit Site</a></p>
<p><strong><a href="http://mosesofegypt.net/post/Multiple-database-support-with-Entity-Framework.aspx" target="_blank">Multiple Database Support in Entity Framework 4</a></strong> &#8211; Interesting article discussing the database independence being introduced with the Entity Framework.</p>
<p><a href="http://mosesofegypt.net/post/Multiple-database-support-with-Entity-Framework.aspx" target="_blank">Visit Site</a><br />
<a href="http://www.amazon.co.uk/Professional-ADO-NET-Entity-Framework-Programmer/dp/047018261X/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1250241638&amp;sr=8-1" target="_blank">BOOK: Professional ADO.Net 3.5 With LINQ and the Entity Framework</a> - I am currently reading this book which tackles ADO.Net 3.5 with the Entity Framework.  Whilst this is not specifically for version 2, this seems to be a good into the the EF and worth a look if you are new to the subject.</p>
<p><a href="http://www.amazon.co.uk/Professional-ADO-NET-Entity-Framework-Programmer/dp/047018261X/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1250241638&amp;sr=8-1" target="_blank">Visit Site</a></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/.NET+4.0' rel='tag' target='_self'>.NET 4.0</a>, <a class='technorati-link' href='http://technorati.com/tag/ef+4' rel='tag' target='_self'>ef 4</a>, <a class='technorati-link' href='http://technorati.com/tag/ef+v2' rel='tag' target='_self'>ef v2</a>, <a class='technorati-link' href='http://technorati.com/tag/Entity+Framework' rel='tag' target='_self'>Entity Framework</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.garypretty.co.uk/index.php/2009/08/25/entity-framework-v2-articles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Entity Framework Improvements in .Net 4.0 &#8211; Summary &amp; Links</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/05/13/entity-framework-improvements-in-net-40-summary-links/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/05/13/entity-framework-improvements-in-net-40-summary-links/#comments</comments>
		<pubDate>Wed, 13 May 2009 11:24:42 +0000</pubDate>
		<dc:creator>Gary Pretty</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[Betas]]></category>
		<category><![CDATA[Entity Fraemwork]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[eneity framework]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/?p=84</guid>
		<description><![CDATA[I have used the entity framework in a few projects using .Net 3.5, but we were promised that there was much more to come in the next version which is shipping with .Net 4.0 and with quite a few announcements recently from the ADO.NET Team, I thought I would summarise and provide some links (at &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/05/13/entity-framework-improvements-in-net-40-summary-links/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>I have used the entity framework in a few projects using .Net 3.5, but we were promised that there was much more to come in the next version which is shipping with .Net 4.0 and with quite a few announcements recently from the ADO.NET Team, I thought I would summarise and provide some links (at the bottom of the post) for you to get some more detailed info if you are interested.</p>
<p><strong>Model First</strong></p>
<p>This is something that I am really excited about and something that has long been needed IMHO.</p>
<p>In .Net 3.5 you could take a database and generate your entity framework model from it.  In .Net 4.0 , however, it is possible to create your model first and then generate DDL for creating your database from your model. </p>
<p>This is all fantastic and I can see me using this method alot, but whats even better is the fact that you will also have the ability to customise the DDL generation step yourself to suit your own needs.  For example, the default generation would be to generate a table per entity type, but you may have several entity classes that inherit from a parent class and in this instance you may want to modify the generator to produce a table per hierarchy structure for your database.</p>
<p><strong>Deferred Loading</strong></p>
<p>One of the things that people wish was available in the Entity Framework is deferred loading as it is in Linq to SQL. Well, now thanks to the ADO.Net team listening to the feedback, it is.  Previously, if you had a <em>Customer </em>object that contained <em>Orders</em> for each customer, you needed to explicitly call a <strong>Load </strong>method on the <em>Customer </em>object to be able to use the <em>Order </em>objects associated with it.</p>
<p>Now though, the following is possible;</p>
<blockquote>
<pre class="csharpcode"><span class="kwrd">using</span> (<span style="color: #4f9d9d;">NorthwindEntities</span> db = <span class="kwrd">new</span> <span style="color: #4e9a9a;">NorthwindEntities</span>())
{
    db.ContextOptions.DeferredLoadingEnabled = <span class="kwrd">true</span>;

    <span class="kwrd">foreach</span> (<span style="color: #4e9a9a;">Customer</span> c <span class="kwrd">in</span> db.Customers)
    {
        <span class="kwrd">if</span> (c.Orders.Count &gt; 10)
        {
            SendLoyaltyRewardToCustomer(c);
        }
    }
}</pre>
</blockquote>
<p>In the simple example above, you will notice that you do not need to explicitly load any Orders, but simply set the <em>DeferredLoadingEnabled </em>flag to true (this is off by default, but apparently there are ways to change this).</p>
<p><strong>General Entity Framework Improvements</strong></p>
<p>The following is a list from a recent post on the ADO.Net Team Blog of other key improvements coming to the Framework in this version;</p>
<ol>
<li>
<ol>
<li><strong>Development Approaches</strong>
<ol>
<li>Model First development –  We’ve added functionality to the ADO.NET Entity Data Model designer to start from a Model and then have T-SQL and customized code generated.</li>
<li>Testing applications that use the Entity Framework – Along with the patterns above we’ve added an interface, along with guidance, that enables better testability of applications that use the Entity Framework.</li>
</ol>
<p><strong>Architectural Concerns</strong></p>
<ol>
<li>Persistence Ignorance – Enabling developers to use their own classes without needing to introduce interfaces or other elements specific to the Entity Framework.</li>
<li>Applications Patterns – Discussing patterns like the Repository and UnitOfWork patterns with guidance on how to use them with the Entity Framework</li>
<li>Building N-Tier applications with the Entity Framework – Adding API’s and templates that make building N-Tier applications with the Entity Framework much easier.</li>
</ol>
<p><strong>Entity Framework Improvements</strong></p>
<ol>
<li>Customization of Code Generation – Integration with the ADO.NET Entity Framework Designer and T4 Templates in Visual Studio to provide developer controlled code generation.</li>
<li>Small things that make development of applications simpler – Adding things like Pluralization and Singularlization in the model, lazy loading, and more stored procedure mapping make building applications that use the Entity Framework much easier.</li>
<li>Customizing Queries – Adding support for existing LINQ operators, recognizing a larger set of patterns with LINQ, writing model defined functions along with the ability to use these in LINQ, and a number of other ways to create and customize queries.</li>
<li>SQL Generation Readability Improvements – Improving the readability, along with TSQL performance optimizations, of the generated queries to make it much easier to understand what is happening</li>
<li>And much, much more</li>
</ol>
</li>
</ol>
</li>
</ol>
<p> </p>
<p><strong>Useful Links</strong></p>
<p>The ADO.Net team have said that they have many mroe detailed posts on the way in the next couple of weeks so it&#8217;s well worth keeping an eye on <a href="http://blogs.msdn.com/adonet/">their blog</a>.  Plus, we should soon see a beta of Visual Studio 2010 and .Net 4.0 which should contain some of the aforementioned features.  I will be posting here when that&#8217;s released so keep an eye out for that.</p>
<p><a href="http://blogs.msdn.com/adonet/archive/2009/05/12/sneak-preview-deferred-loading-in-entity-framework-4-0.aspx">ADO.Net Team Blog Post regarding Deferred Loading</a></p>
<p><a href="http://blogs.msdn.com/adonet/archive/2009/05/12/sneak-preview-model-first-in-the-entity-framework-4-0.aspx">ADO.Net Team Blog Post reagrding Model First in EF</a></p>
<p><a href="http://blogs.msdn.com/adonet/">ADO.Net Team Blog</a></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/.NET+4.0' rel='tag' target='_self'>.NET 4.0</a>, <a class='technorati-link' href='http://technorati.com/tag/ADO.NET' rel='tag' target='_self'>ADO.NET</a>, <a class='technorati-link' href='http://technorati.com/tag/eneity+framework' rel='tag' target='_self'>eneity framework</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.garypretty.co.uk/index.php/2009/05/13/entity-framework-improvements-in-net-40-summary-links/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

