<?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; visual studio</title>
	<atom:link href="http://blog.garypretty.co.uk/index.php/category/visual-studio/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>Resharper for Visual Studio 2010 Available!</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/09/16/resharper-for-visual-studio-2010-available/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/09/16/resharper-for-visual-studio-2010-available/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 22:10:50 +0000</pubDate>
		<dc:creator>Gary Pretty</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Betas]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[resharper]]></category>
		<category><![CDATA[visual studio 2010]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/?p=220</guid>
		<description><![CDATA[Ok, this one completely slipped by me! A while back I told you that JetBrains had a page on their web site stating that a preview of ReSharper for Visual Studio 2010 was on its way and that we would see it in June&#8230;.but there was nothing.  Turns out it has been there since July in the &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/09/16/resharper-for-visual-studio-2010-available/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-221 alignleft" style="margin: 20px;" title="resharper" src="http://blog.garypretty.co.uk/wp-content/resharper-300x186.jpg" alt="resharper" width="300" height="186" /><br />
Ok, this one completely slipped by me! A while back I told you that JetBrains had a page on their web site stating that a preview of ReSharper for Visual Studio 2010 was on its way and that we would see it in June&#8230;.but there was nothing.  Turns out it has been there since July in the form of Nightly Builds available for download, there was just no major announcement made.</p>
<p>Anyway, if you want to get your hands on it you can <a href="http://www.jetbrains.net/confluence/display/ReSharper/ReSharper+for+Visual+Studio+2010+%28Preview%29" target="_blank">download it from here </a>.  To install it just make sure the extension is .Vsix, IE seems to download and save this as a zip so you may need to rename it, and the Visual Studio 2010 extension manager will take over from here and take you through the short installation.</p>
<p>Once it is installed, open Visual Studio, where you will need to enter the licence information provided on the download page.  It is telling me that it is going to expire on the 22nd September at the moment, but this may be extended further until VS 2010 beta 2 is released later in the year.</p>
<p>Anyway, as you can see, I now have mine ready to rock and roll so enjoy!</p>

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

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

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.garypretty.co.uk/index.php/2009/09/16/resharper-for-visual-studio-2010-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SOLVED: Visual Studio 2010 Beta 1  &#8211; Cannot Create The Window</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/09/14/solved-visual-studio-2010-beta-1-cannot-create-the-window/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/09/14/solved-visual-studio-2010-beta-1-cannot-create-the-window/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 09:06:10 +0000</pubDate>
		<dc:creator>Gary Pretty</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[msvcm100.dll]]></category>
		<category><![CDATA[office 2010]]></category>
		<category><![CDATA[visul studio 2010]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/?p=193</guid>
		<description><![CDATA[I am currently in the Microsoft Office 2010 tech preview and I must say that I am loving it!   What I did not love though was after installing Office 2010, my Visual Studio 2010 Beta stopped working, simply displaying the message &#8220;Cannot Create The Window&#8221;. Microsoft claimed not to be able to recreate the &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/09/14/solved-visual-studio-2010-beta-1-cannot-create-the-window/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>I am currently in the Microsoft Office 2010 tech preview and I must say that I am loving it! <img src='http://blog.garypretty.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>What I did not love though was after installing Office 2010, my Visual Studio 2010 Beta stopped working, simply displaying the message &#8220;Cannot Create The Window&#8221;.</p>
<p>Microsoft claimed not to be able to recreate the issue and I was quite happy to wait until another version of VS 2010 was released, but luckily for me, Microsoft have now found the issue.  Apparently, there is a version msvcm100.dll in C:\windows\system32 which is different in office 2010 than in vs 2010.  It also seems that office and vs play nice when using the VS version of the dll, but that VS falls over when using the office version.</p>
<p>Ok, so to the workaround&#8230;&#8230;</p>
<p>You have two options;</p>
<p>1. Replace the msvcm100.dll with this one, <a href="http://blog.garypretty.co.uk/attachments/msvcm100.zip">msvcm100.zip</a>, I took from my system32 folder. </p>
<p>or</p>
<p>2. If you would prefer not to use a randomly downloaded dll from here, you can rename the msvcm100.dll in system32 to msvcm100.dll.old and then run VS 2010 setup and choose to repair.  This will recreate the dll.</p>
<p>The working version of msvcm100.dll has a datetime stamp of 6th May 2009 7:20AM.</p>
<p>Well, now my Visual Studio is working again, I am off to have a play!</p>
<p>Enjoy!</p>

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

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/msvcm100.dll' rel='tag' target='_self'>msvcm100.dll</a>, <a class='technorati-link' href='http://technorati.com/tag/office+2010' rel='tag' target='_self'>office 2010</a>, <a class='technorati-link' href='http://technorati.com/tag/visul+studio+2010' rel='tag' target='_self'>visul studio 2010</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.garypretty.co.uk/index.php/2009/09/14/solved-visual-studio-2010-beta-1-cannot-create-the-window/feed/</wfw:commentRss>
		<slash:comments>9</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>Windows 7 Upgrade Corrupts / Removes .Net 4.0 and VS 2010 Betas</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/08/11/windows-7-upgrade-corrupts-removes-net-4-0-and-vs-2010-betas/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/08/11/windows-7-upgrade-corrupts-removes-net-4-0-and-vs-2010-betas/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 15:42:38 +0000</pubDate>
		<dc:creator>Gary Pretty</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Betas]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Mobile]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/index.php/2009/08/11/windows-7-upgrade-corrupts-removes-net-4-0-and-vs-2010-betas/</guid>
		<description><![CDATA[The other day I performed an upgrade of Windows 7 RC to Windows 7 RTM using the workaround mentioned here, as this is not an option straight out of the box. I think I may have just stumbled across one of the reasons why. I have just noticed that my HTC Touch Pro hadn&#8217;t picked &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/08/11/windows-7-upgrade-corrupts-removes-net-4-0-and-vs-2010-betas/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>The other day I performed an upgrade of Windows 7 RC to Windows 7 RTM using the workaround mentioned here, as this is not an option straight out of the box.</p>
<p>I think I may have just stumbled across one of the reasons why.</p>
<p>I have just noticed that my HTC Touch Pro hadn&#8217;t picked up some new appointments from my calendar in Outlook.  Hmmm&#8230;&#8230;odd I thought!  At this point I tried to open Windows Mobile Device Center to attempt to start a sync manually and I received this error!</p>
<p><a href="http://blog.garypretty.co.uk/wp-content/clip_image002.jpg"><img style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" src="http://blog.garypretty.co.uk/wp-content/clip_image002_thumb.jpg" border="0" alt="clip_image002" width="468" height="205" /></a></p>
<p>Upon seeing this I also tried to launch Visual Studio 2010 Beta 1 for the first time since I upgraded and&#8230;..nothing&#8230;&#8230;not even an error message. It just didn&#8217;t launch.</p>
<p>Anyway, I have just re-downloaded and re-installed the beta of .Net 4.0 framework and now my mobile is syncing correctly and WMDC starts without a problem. Great&#8230;.a 2 minute fix I thought! </p>
<p>Then I launched Visual Studio 2010 and to my delight I saw the splash screen!&#8230;&#8230;.for about 4 seconds until this&#8230;&#8230;</p>
<p><a href="http://blog.garypretty.co.uk/wp-content/clip_image0025.jpg"><img style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" src="http://blog.garypretty.co.uk/wp-content/clip_image0025_thumb.jpg" border="0" alt="clip_image002[5]" width="455" height="175" /></a></p>
<p>So unfortunately, it looks like I will need to re-download the Visual Studio 2010 beta and re-install it before that works again <img src='http://blog.garypretty.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>That will teach me to upgrade from RC to RTM!</p>

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

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.garypretty.co.uk/index.php/2009/08/11/windows-7-upgrade-corrupts-removes-net-4-0-and-vs-2010-betas/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 Multiple Monitor Support &#8211; Screenshot</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/05/20/visual-studio-2010-multiple-monitor-support-screenshot/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/05/20/visual-studio-2010-multiple-monitor-support-screenshot/#comments</comments>
		<pubDate>Thu, 21 May 2009 00:08:08 +0000</pubDate>
		<dc:creator>Gary Pretty</dc:creator>
				<category><![CDATA[Betas]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[multi monitor]]></category>
		<category><![CDATA[visual studio 2010]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/?p=124</guid>
		<description><![CDATA[For those of you who have not installed the beta of Visual Studio 2010, below is a screenshot showing the new feature within 2010 that allows support for multiple monitors.  As you can see, you can now completely undock your editors and other windows and drag them onto another monitor or simply another area of &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/05/20/visual-studio-2010-multiple-monitor-support-screenshot/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>For those of you who have not installed the beta of Visual Studio 2010, below is a screenshot showing the new feature within 2010 that allows support for multiple monitors.  As you can see, you can now completely undock your editors and other windows and drag them onto another monitor or simply another area of the screen as shown in the second screenshot. Very nice!</p>

<a href='http://blog.garypretty.co.uk/index.php/2009/05/20/visual-studio-2010-multiple-monitor-support-screenshot/multi_monitor_1/' title='multi_monitor_1'><img width="150" height="150" src="http://blog.garypretty.co.uk/wp-content/multi_monitor_1-150x150.gif" class="attachment-thumbnail" alt="multi_monitor_1" title="multi_monitor_1" /></a>
<a href='http://blog.garypretty.co.uk/index.php/2009/05/20/visual-studio-2010-multiple-monitor-support-screenshot/multi_monitor_2/' title='multi_monitor_2'><img width="150" height="150" src="http://blog.garypretty.co.uk/wp-content/multi_monitor_2-150x150.gif" class="attachment-thumbnail" alt="multi_monitor_2" title="multi_monitor_2" /></a>


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

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

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.garypretty.co.uk/index.php/2009/05/20/visual-studio-2010-multiple-monitor-support-screenshot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>TUTORIAL: Entity Framework v2.0 &#8211; Model First using Visual Studio 2010 and .Net 4.0</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/05/20/tutorial-entity-framework-v20-model-first-using-visual-studio-2010-and-net-40/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/05/20/tutorial-entity-framework-v20-model-first-using-visual-studio-2010-and-net-40/#comments</comments>
		<pubDate>Wed, 20 May 2009 14:36:56 +0000</pubDate>
		<dc:creator>Gary Pretty</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[.net 4]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[visual studio 2010]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/index.php/2009/05/20/tutorial-entity-framework-v20-model-first-using-visual-studio-2010-and-net-40/</guid>
		<description><![CDATA[Following up on my recent post about the improvements to the Entity Framework in .Net 4.0 this is the first in a series of posts examining some of the new features and showing you how to put some of them into practice. In this post I am going to look at one of the most &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/05/20/tutorial-entity-framework-v20-model-first-using-visual-studio-2010-and-net-40/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Following up on my recent post about the improvements to the Entity Framework in .Net 4.0 this is the first in a series of posts examining some of the new features and showing you how to put some of them into practice.</p>
<p>In this post I am going to look at one of the most anticipated features, Model First.  In the first version of the Entity Framework, you took a pre-existing database and the tools would generate your entity model for you.  In v2.0, you now have the option of creating your entity model first and then generating your database DDL from your finished model.</p>
<p>To follow this tutorial you will need Visual Studio 2010 Beta 1, .Net Framework 4.0 Beta 1 installed, SQL 2005 or 2008 / SQL Express.</p>
<p><strong><span style="color: #ff8000;">Please bear with me and let me know if there are any parts of this tutorial that are not completely clear.  I am new to writing these! So any comments welcome….</span></strong></p>
<p><strong>Creating your project and adding your blank entity model</strong></p>
<p>Open Visual Studio 2010 and create a new Dynamic Data Entities Web Application project(you could another project type to host your entity model, such as an ASP.Net Web Application).</p>
<p>Once your project has been created add a new <strong>ADO.Net Entity Data Model </strong>to the project. </p>
<p><a href="http://blog.garypretty.co.uk/wp-content/add-model-object.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="add_model_object" src="http://blog.garypretty.co.uk/wp-content/add-model-object-thumb.gif" border="0" alt="add_model_object" width="523" height="364" /></a></p>
<p>You will then be asked about what the model should contain.  As with version 1 of the Entity Framework, you have two options, <em>Generate from Database </em>and <em>Empty Model</em>.  To a large extent, the latter was redundant in the first version of the framework, but with version 2 it becomes very useful.  Select <strong><em>Empty Model</em></strong> and click Finish.<span id="more-121"></span></p>
<p><a href="http://blog.garypretty.co.uk/wp-content/choose-empty-model.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="choose_empty_model" src="http://blog.garypretty.co.uk/wp-content/choose-empty-model-thumb.gif" border="0" alt="choose_empty_model" width="526" height="467" /></a></p>
<p><strong></strong></p>
<p><strong><br />
Adding an entity and scalar properties to your model</strong></p>
<p>You will now be presented with your empty model designer ready for you to add your entities.  Right click on the designer and select <strong>Add –&gt; Entity…  </strong>For this example we will name our entity “Customer” and the entity set “Customers”.  This will create your Customer entity in the designer.</p>
<p>You will now need to add some properties to the entity.  You can do this by right clicking the entity and <strong>Add –&gt; Scalar Property </strong>and then selecting the data type of the property. Do this and create two string scalar properties for Name and Email.</p>
<p><strong></strong></p>
<p><strong><br />
Adding complex types</strong></p>
<p>You should now have a Customer entity with properties for the customer’s name and email address. A complex type is essentially a property that can contain sub properties.  To display this we are going to create one for the customer’s mailing address.</p>
<p>In your model browser, right click on the “Complex Types” folder and select <strong>Create Complex Type</strong>.  Rename this created type “Address”.  Now right click on the <strong>Address </strong>object you have created and select <strong>Add –&gt; Scalar Property –&gt; String</strong>.  Rename the created property “Line 1”.  Repeat this, adding properties for Line 2, Town, County, Post Code (you could use City, State, Zip if you are in the U.S. for example).</p>
<p><a href="http://blog.garypretty.co.uk/wp-content/entity-created-add-scalar.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="entity_created_add_scalar" src="http://blog.garypretty.co.uk/wp-content/entity-created-add-scalar-thumb.gif" border="0" alt="entity_created_add_scalar" width="531" height="246" /></a></p>
<p>Once you have created your complex type, you can add this to your Customer entity by right clicking the entity and selecting <strong>Add –&gt; Complex Property</strong>. If you name your property Address, then the property type should automatically be set to <em>Address</em>, which is what we have just created.  You can check this and alter the type via the properties of the complex property (that’s a lot of properties <img src='http://blog.garypretty.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p> </p>
<p><strong>Create some additional entities</strong></p>
<p>Once I had created my Customer entity, I then went through the same steps to create two additional entities for <strong>Order</strong> and <strong>Product</strong>. If you do this, then you should end up with something like below.</p>
<p><a href="http://blog.garypretty.co.uk/wp-content/finished-entities.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="finished_entities" src="http://blog.garypretty.co.uk/wp-content/finished-entities-thumb.gif" border="0" alt="finished_entities" width="531" height="419" /></a></p>
<p><strong></strong></p>
<p><strong><br />
Adding entity associations</strong></p>
<p>Now that we have our entities for Customer, Order and Product, we need to tell the model how the entities are associated.  For example, a customer will have related orders and an order will have related products.</p>
<p>To add our first association, right click the Customer entity and select <strong>Add –&gt; Association</strong>. You will then be presented with the dialog shown below to actually define the association.  As you can see, the primary entity for this association is Customer which is related to Order with a multiplicity of one-to-many.  Here is where we also set the navigation properties which will allow us to access related entities.  So for example, the Customer entity will have a navigation property of “Orders”.  There is also a plain English description of the association you are about to create to ensure that you are creating it correctly.</p>
<p><a href="http://blog.garypretty.co.uk/wp-content/create-association.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="create_association" src="http://blog.garypretty.co.uk/wp-content/create-association-thumb.gif" border="0" alt="create_association" width="530" height="508" /></a>  </p>
<p>Once you are happy click ok and the association will be shown on your model connecting the Customer and Order entities.</p>
<p>We now need to also create an association between the Order and Product entities using the same steps as above, but this time the properties of the association are slightly different as the multiplicity is many-to-many as show below.</p>
<p><a href="http://blog.garypretty.co.uk/wp-content/manytomanyassociation.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="many-to-many-association" src="http://blog.garypretty.co.uk/wp-content/manytomanyassociation-thumb.gif" border="0" alt="many-to-many-association" width="534" height="512" /></a></p>
<p><strong></strong></p>
<p><strong><br />
Generating the database</strong></p>
<p>Ok, so we have our model containing our entities.  Our entities have their properties and their associations, but we still do not have a database for our model to map to.  This is the bit I really like.  Right click on the model designer area and click “<strong>Generate Database Script From Model…</strong>”.</p>
<p>This will then open the standard database connection dialog we are all used to in Visual Studio. Add a connection, select your server and enter a name for your database (use a name that does not already exist, I called mine “ModelFirstTestDb”…..original I know!), then click OK.  You should then be prompted to create the database as seen below, so click Yes to create the database.</p>
<p><a href="http://blog.garypretty.co.uk/wp-content/confirm-database-create.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="confirm_database_create" src="http://blog.garypretty.co.uk/wp-content/confirm-database-create-thumb.gif" border="0" alt="confirm_database_create" width="532" height="543" /></a></p>
<p>You should now see your new connection selected and the option to store the credentials in the web.config should be checked. Click next and the database schema scripts (DDL) will be generated for you and you will be presented with the generated script as below.  Take a minute to have a look through the DDL and see how it has created the tables and fields.  In the image below you can see the fields that have been generated to map to the complex type for the Customer address we created earlier.</p>
<p><a href="http://blog.garypretty.co.uk/wp-content/generated-ddl.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="generated_ddl" src="http://blog.garypretty.co.uk/wp-content/generated-ddl-thumb.gif" border="0" alt="generated_ddl" width="535" height="517" /></a></p>
<p>Now we just need to click Finish and we will be warned that our existing mappings and store schema will be overwritten, click Yes to continue.</p>
<p><a href="http://blog.garypretty.co.uk/wp-content/ssdl-warning.gif"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ssdl_warning" src="http://blog.garypretty.co.uk/wp-content/ssdl-warning-thumb.gif" border="0" alt="ssdl_warning" width="434" height="129" /></a></p>
<p><strong></strong></p>
<p><strong><br />
Execute your DDL</strong></p>
<p>Now you need to take the generated script and execute it against your database.  The database itself will have been created, but in this beta version you still need to execute the scripts manually.  The ADO.Net team have indicated that this will not be the case in the final version.</p>
<p><strong></strong></p>
<p><strong><br />
Running your Dynamic Data Entities application</strong></p>
<p>If you now open the Global.asax.cs file in your project and add the following line in the RegisterRoutes method, you should be able to run your application and see your new model and database in action;</p>
<p><span style="font-size: xx-small;"><strong>DefaultModel.RegisterContext(typeof(Model1Container),new ContextConfiguration() { ScaffoldAllTables = true });</strong></span></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' rel='tag' target='_self'>.net 4</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/Entity+Framework' rel='tag' target='_self'>Entity Framework</a>, <a class='technorati-link' href='http://technorati.com/tag/tutorial' rel='tag' target='_self'>tutorial</a>, <a class='technorati-link' href='http://technorati.com/tag/visual+studio+2010' rel='tag' target='_self'>visual studio 2010</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.garypretty.co.uk/index.php/2009/05/20/tutorial-entity-framework-v20-model-first-using-visual-studio-2010-and-net-40/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>MSDN &amp; Public Visual Studio 2010 Beta 1 Downloads Finally Here!</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/05/18/visual-studio-2010-beta-1-download-finally-here/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/05/18/visual-studio-2010-beta-1-download-finally-here/#comments</comments>
		<pubDate>Mon, 18 May 2009 09:05:37 +0000</pubDate>
		<dc:creator>Gary Pretty</dc:creator>
				<category><![CDATA[Betas]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[visual studio 2010]]></category>
		<category><![CDATA[vs2010]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/?p=94</guid>
		<description><![CDATA[UPDATE: The public version of the Visual Studio 2010 Beta 1 can be found here. Today sees the waiting over for many people, myself included, for the release of Beta 1 of Visual Studio 2010. According to Mike Ormond the beta will be available to MSDN Subscribers today, with a public download following hot on its &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/05/18/visual-studio-2010-beta-1-download-finally-here/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>UPDATE: The public version of the Visual Studio 2010 Beta 1 can be found <a href="http://msdn.microsoft.com/en-gb/vstudio/dd582936.aspx">here</a>.</p>
<p>Today sees the waiting over for many people, myself included, for the release of Beta 1 of Visual Studio 2010.</p>
<p>According to <a href="http://www.mikeo.co.uk">Mike Ormond</a> the beta will be available to MSDN Subscribers today, with a public download following hot on its heels on Wednesday.</p>
<p>Apparently, the beta will run fine on Windows 7 RC1.</p>
<p>If you are an MSDN Subscriber, visit MSDN subscriber downloads <a href="http://msdn.microsoft.com/subscriptions/downloads/default.aspx?pv=18:370">here</a>.</p>

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

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/beta' rel='tag' target='_self'>beta</a>, <a class='technorati-link' href='http://technorati.com/tag/Microsoft' rel='tag' target='_self'>Microsoft</a>, <a class='technorati-link' href='http://technorati.com/tag/MSDN' rel='tag' target='_self'>MSDN</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/05/18/visual-studio-2010-beta-1-download-finally-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 Beta Release Next Week&#8230;..Maybe.</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/05/14/visual-studio-2010-beta-release-next-weekmaybe/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/05/14/visual-studio-2010-beta-release-next-weekmaybe/#comments</comments>
		<pubDate>Thu, 14 May 2009 09:08:19 +0000</pubDate>
		<dc:creator>Gary Pretty</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Betas]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[visual studio 2010]]></category>
		<category><![CDATA[vs2010]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/?p=87</guid>
		<description><![CDATA[Many people, myself included were gvery exicited this week as we were expecting the release of Vsiaul Studio 2010 Beta from TechEd, however, now Mary J Foley has posted on her blog stating that she believes that Visual Studio 2010 Beta 1 will be released next week. Although this is nothing concrete, it certainly seems &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/05/14/visual-studio-2010-beta-release-next-weekmaybe/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Many people, myself included were gvery exicited this week as we were expecting the release of Vsiaul Studio 2010 Beta from TechEd, however, now <a href="http://blogs.zdnet.com/microsoft/?p=2769">Mary J Foley has posted on her blog </a>stating that she believes that Visual Studio 2010 Beta 1 will be released next week.</p>
<p>Although this is nothing concrete, it certainly seems that certain people in the Twitterverse are saying that <a href="http://blogs.msdn.com/jasonz/">Jason Zander </a>is saying that they are very close to release and therefore adding some more credence top the claims.</p>
<p>Just hurry up Microsoft!</p>

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

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Microsoft' rel='tag' target='_self'>Microsoft</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/05/14/visual-studio-2010-beta-release-next-weekmaybe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010 Beta This Week?</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/05/09/visual-studio-2010-beta-this-week/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/05/09/visual-studio-2010-beta-this-week/#comments</comments>
		<pubDate>Sun, 10 May 2009 03:20:38 +0000</pubDate>
		<dc:creator>Gary Pretty</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Betas]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[visual studio 2010]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/?p=78</guid>
		<description><![CDATA[So, I have my Windows 7 RC up and running and I am now itching to get hold of a beta of Visual Studio 2010. I held off downloading the Virtual PC CTP ion order to wait for an installable version, but that seems to have been a long time coming. The wait may be &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/05/09/visual-studio-2010-beta-this-week/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>So, I have my Windows 7 RC up and running and I am now itching to get hold of a beta of Visual Studio 2010.</p>
<p>I held off downloading the Virtual PC CTP ion order to wait for an installable version, but that seems to have been a long time coming.</p>
<p>The wait may be over this week though as a lot of rumours are going around that put the release of a beta within the TechEd timeframe (May 11 &#8211; May 15).</p>
<p>Fingers Crossed!</p>
<p>Have you tried the CTP yet? What did you think?</p>

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

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

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://blog.garypretty.co.uk/index.php/2009/05/09/visual-studio-2010-beta-this-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

