<?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 2010</title>
	<atom:link href="http://blog.garypretty.co.uk/index.php/tag/visual-studio-2010/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>Scott Guthrie &#8211; Manchester &#8211; September 2009 &#8211; ASP.Net 4.0, MVC, Silverlight 3, VS 2010</title>
		<link>http://blog.garypretty.co.uk/index.php/2009/09/16/scott-guthrie-manchester-september-2009-asp-net-4-0-mvc-silverlight-3-vs-2010/</link>
		<comments>http://blog.garypretty.co.uk/index.php/2009/09/16/scott-guthrie-manchester-september-2009-asp-net-4-0-mvc-silverlight-3-vs-2010/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 22:22: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[Microsoft]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[scott gu]]></category>
		<category><![CDATA[scott guthrie]]></category>
		<category><![CDATA[silverlight 3]]></category>
		<category><![CDATA[visual studio 2010]]></category>

		<guid isPermaLink="false">http://blog.garypretty.co.uk/?p=223</guid>
		<description><![CDATA[Scott Guthrie, Microsoft&#8217;s Corporate Vice Presedent and all round .Net Guru is coming to Manchester, UK, later this month to talk about what&#8217;s new with Visual Studio 2010, ASP.Net 4.0, Silverlight 3 and upcoming improvements to the MVC Framework! Seating for this event, entitled Guathon 2009,  is very limited and as such you can only join the &#8230; </p><p><a class="more-link block-button" href="http://blog.garypretty.co.uk/index.php/2009/09/16/scott-guthrie-manchester-september-2009-asp-net-4-0-mvc-silverlight-3-vs-2010/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-224 alignleft" style="margin: 20px; border: black 1px solid;" title="scottguthrie" src="http://blog.garypretty.co.uk/wp-content/scottguthrie.png" alt="scottguthrie" width="215" height="165" /></p>
<p>Scott Guthrie, Microsoft&#8217;s Corporate Vice Presedent and all round .Net Guru is coming to Manchester, UK, later this month to talk about what&#8217;s new with Visual Studio 2010, ASP.Net 4.0, Silverlight 3 and upcoming improvements to the MVC Framework!</p>
<p>Seating for this event, entitled Guathon 2009,  is very limited and as such you can only join the wait list at the moment, but I have been lucky enough to secure a place at what promises to be a fantastic workshop.</p>
<p>The announcement on the <a href="http://www.developerdeveloperdeveloper.com/guathon/">event home page over at DeveloperDeveloperDeveloper</a> also has a funny section of &#8220;things you might not know about Scott Gu&#8221;, such as;</p>
<blockquote>
<li>When Scott Guthrie throws exceptions, it’s across the room.</li>
<li>All arrays Scott Guthrie declares are of infinite size, because Scott Guthrie knows no bounds.</li>
<li>Scott Guthrie doesn’t have disk latency because the hard drive knows to hurry the hell up.</li>
<li>Scott Guthrie writes code that optimizes itself.</li>
<li>Scott Guthrie can’t test for equality because he has no equal.</li>
<li>Scott Guthrie doesn’t need garbage collection because he doesn’t call .Dispose(), he calls .DropKick().</li>
</blockquote>
<p>For the rest of this amusing list and more info on the event or to add yourself to the wait list, <a href="http://www.developerdeveloperdeveloper.com/guathon/" target="_blank">visit the event home page</a>.</p>

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

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/ASP.Net' rel='tag' target='_self'>ASP.Net</a>, <a class='technorati-link' href='http://technorati.com/tag/ASP.NET+MVC' rel='tag' target='_self'>ASP.NET MVC</a>, <a class='technorati-link' href='http://technorati.com/tag/scott+gu' rel='tag' target='_self'>scott gu</a>, <a class='technorati-link' href='http://technorati.com/tag/scott+guthrie' rel='tag' target='_self'>scott guthrie</a>, <a class='technorati-link' href='http://technorati.com/tag/silverlight+3' rel='tag' target='_self'>silverlight 3</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/scott-guthrie-manchester-september-2009-asp-net-4-0-mvc-silverlight-3-vs-2010/feed/</wfw:commentRss>
		<slash:comments>2</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>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>

