<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code First Migrations: Beta 1 ‘No-Magic’ Walkthrough</title><link>http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-no-magic-walkthrough.aspx</link><description>&amp;#160; The information in this post is out of date. Visit msdn.com/data/ef for the latest information on current and past releases of EF. For Code First Migrations see http://msdn.com/data/jj591621 &amp;#160; We have released the fourth preview of our migrations</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Code First Migrations: Beta 1 ‘No-Magic’ Walkthrough</title><link>http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-no-magic-walkthrough.aspx#10265383</link><pubDate>Wed, 08 Feb 2012 13:02:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10265383</guid><dc:creator>Tahir Hassan</dc:creator><description>&lt;p&gt;It is worth putting up a notice at the top of this article that EF 4.3 Beta 1 is released and link to that article:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/adonet/archive/2012/01/12/ef-4-3-beta-1-released.aspx"&gt;blogs.msdn.com/.../ef-4-3-beta-1-released.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10265383" width="1" height="1"&gt;</description></item><item><title>re: Code First Migrations: Beta 1 ‘No-Magic’ Walkthrough</title><link>http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-no-magic-walkthrough.aspx#10255739</link><pubDate>Wed, 11 Jan 2012 23:45:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10255739</guid><dc:creator>Kristoffer Garcia</dc:creator><description>&lt;p&gt;The Data Motion / Custom SQL bit, specifically the code shown at the end of this comment, is causing a SqlException with the following message &amp;quot;Invalid column name &amp;#39;Abstract&amp;#39;&amp;quot;. I tried generating and running the script for this command and the same thing happens. I&amp;#39;ve been told that this is standard behavior for SQL Server, so I&amp;#39;m kinda wondering how come it worked for you guys. Is this a configuration issue or a bug in code first migrations?&lt;/p&gt;
&lt;p&gt;AddColumn(&amp;quot;Posts&amp;quot;, &amp;quot;Abstract&amp;quot;, c =&amp;gt; c.String());&lt;/p&gt;
&lt;p&gt;Sql(&amp;quot;UPDATE dbo.Posts SET Abstract = LEFT(Content, 100) WHERE Abstract IS NULL&amp;quot;);&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10255739" width="1" height="1"&gt;</description></item><item><title>re: Code First Migrations: Beta 1 ‘No-Magic’ Walkthrough</title><link>http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-no-magic-walkthrough.aspx#10252899</link><pubDate>Wed, 04 Jan 2012 01:55:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10252899</guid><dc:creator>Jarrett Vance</dc:creator><description>&lt;p&gt;I love migrations. &amp;nbsp;You guys are doing a great job. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want to echo Leandro&amp;#39;s question: if you have an existing database with existing data, how do you do the initial migration? It seems like you must wipe the database to get the first migration.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10252899" width="1" height="1"&gt;</description></item><item><title>re: Code First Migrations: Beta 1 ‘No-Magic’ Walkthrough</title><link>http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-no-magic-walkthrough.aspx#10249806</link><pubDate>Wed, 21 Dec 2011 02:18:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10249806</guid><dc:creator>Leandro Guimarães</dc:creator><description>&lt;p&gt;I wonder what the ideal way to work with (Migration) when working with a (database) existing.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m deleting the (Up and Down) generated by the first (Add-migration) and giving the next update just starting changes.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10249806" width="1" height="1"&gt;</description></item><item><title>re: Code First Migrations: Beta 1 ‘No-Magic’ Walkthrough</title><link>http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-no-magic-walkthrough.aspx#10248268</link><pubDate>Thu, 15 Dec 2011 21:14:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10248268</guid><dc:creator>Krzysiek S</dc:creator><description>&lt;p&gt;I didn&amp;#39;t know about the DbMigrator class, thanks. I think that I can use this with some DI to get the same functionality. Though I must say that it is a really nice feature in code first that I could just change the config value and not having to worry about anything else&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10248268" width="1" height="1"&gt;</description></item><item><title>re: Code First Migrations: Beta 1 ‘No-Magic’ Walkthrough</title><link>http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-no-magic-walkthrough.aspx#10248196</link><pubDate>Thu, 15 Dec 2011 17:45:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10248196</guid><dc:creator>Andrew J Peters</dc:creator><description>&lt;p&gt;@Krzysiek S,&lt;/p&gt;
&lt;p&gt;If you are using the runtime DbMigrator class to setup your test database, then you could have a separate MigrationsConfiguration with a different Seed method. Otherwise, you could run different seed logic from the one Seed method by examining which database is currently being targetted. Take a look at the properties available on DbMigrationsConfiguration like ConnectionStringName etc.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10248196" width="1" height="1"&gt;</description></item><item><title>re: Code First Migrations: Beta 1 ‘No-Magic’ Walkthrough</title><link>http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-no-magic-walkthrough.aspx#10248058</link><pubDate>Thu, 15 Dec 2011 11:34:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10248058</guid><dc:creator>Krzysiek S</dc:creator><description>&lt;p&gt;EF has the initializers that I&amp;#39;m able to configure in .config file and change depending on the environment that the app is run on. Is there anything similar to this in migrations? I&amp;#39;d like to seed the test db with dummy data, but the integration db with only the required stuff&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10248058" width="1" height="1"&gt;</description></item><item><title>re: Code First Migrations: Beta 1 ‘No-Magic’ Walkthrough</title><link>http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-no-magic-walkthrough.aspx#10247701</link><pubDate>Wed, 14 Dec 2011 16:44:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10247701</guid><dc:creator>Guillermo</dc:creator><description>&lt;p&gt;Hi, i noticed that you can seed the database through migrations, but the way that you guys recomend this, is writting those seeds at the configuration.cs, that works fine but everytime I do Update-Database, those seeds are going to populate my DB, is there is a way that those seeds populate the database only once, maybe implementing the seeds at the migrations or something like that?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10247701" width="1" height="1"&gt;</description></item><item><title>re: Code First Migrations: Beta 1 ‘No-Magic’ Walkthrough</title><link>http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-no-magic-walkthrough.aspx#10247642</link><pubDate>Wed, 14 Dec 2011 14:50:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10247642</guid><dc:creator>Krzysiek S</dc:creator><description>&lt;p&gt;I do have one more question - is it possible to use migrations with an existing application? I have an app in version 0.1 in which I haven&amp;#39;t used migrations. Now I have a codebase for 0.2 and would like to generate a db diff script...&lt;/p&gt;
&lt;p&gt;I know that I can always go to the repo, fetch code for 0.1, generate a migration, fetch code for 0.2, copy the migration over, generate the next migration. But maybe there is a quicker way?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10247642" width="1" height="1"&gt;</description></item><item><title>re: Code First Migrations: Beta 1 ‘No-Magic’ Walkthrough</title><link>http://blogs.msdn.com/b/adonet/archive/2011/11/29/code-first-migrations-beta-1-no-magic-walkthrough.aspx#10247639</link><pubDate>Wed, 14 Dec 2011 14:42:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10247639</guid><dc:creator>Krzysiek S</dc:creator><description>&lt;p&gt;Thanks Brice and Rowan.&lt;/p&gt;
&lt;p&gt;Great job on the migrations tool - love it so far.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10247639" width="1" height="1"&gt;</description></item></channel></rss>