<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for RoMiller.com</title>
	<atom:link href="http://romiller.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://romiller.com</link>
	<description>Rowan works as a Program Manager for the ADO.NET Entity Framework team at Microsoft. He speaks at technical conferences and blogs at http://romiller.com. Rowan lives in Seattle, Washington with his wife Athalie. Prior to moving to the US he resided in the small state of Tasmania in Australia. Outside of technology Rowan&#039;s passions include snowboarding, mountain biking, horse riding, rock climbing and pretty much anything else that involves being active. The primary focus of his life, however, is to follow Jesus.</description>
	<lastBuildDate>Thu, 23 Feb 2012 15:55:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on Testing With a Fake DbContext by Mat</title>
		<link>http://romiller.com/2012/02/14/testing-with-a-fake-dbcontext/#comment-1641</link>
		<dc:creator><![CDATA[Mat]]></dc:creator>
		<pubDate>Thu, 23 Feb 2012 15:55:40 +0000</pubDate>
		<guid isPermaLink="false">https://romillerblog.wordpress.com/?p=258#comment-1641</guid>
		<description><![CDATA[Ignore me, I was being thick, maybe it&#039;s time I got some sleep... :p]]></description>
		<content:encoded><![CDATA[<p>Ignore me, I was being thick, maybe it&#8217;s time I got some sleep&#8230; :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Testing With a Fake DbContext by Mat</title>
		<link>http://romiller.com/2012/02/14/testing-with-a-fake-dbcontext/#comment-1640</link>
		<dc:creator><![CDATA[Mat]]></dc:creator>
		<pubDate>Thu, 23 Feb 2012 15:26:32 +0000</pubDate>
		<guid isPermaLink="false">https://romillerblog.wordpress.com/?p=258#comment-1640</guid>
		<description><![CDATA[Forgive me for being incredibly thick but I&#039;ve been banging my head against the code sample for a while now - as soon as I make EmployeeContext inherit from IEmployeeContext I get the following compile error:

&quot;EFSample.EmployeeContext&#039; does not implement interface member &#039;EFSample.IEmployeeContext.Employees&#039;. &#039;EFSample.EmployeeContext.Employees&#039; cannot implement &#039;EFSample.IEmployeeContext.Employees&#039; because it does not have the matching return type of &#039;System.Data.Entity.IDbSet&quot;

I know DbSet implements IDbSet because it&#039;s right there in the metadata, so what am I missing?

All the code is copied and pasted and visually checked. I&#039;ve been coding for some time now which makes me feel really stupid, I just can&#039;t see the wood for the trees here.]]></description>
		<content:encoded><![CDATA[<p>Forgive me for being incredibly thick but I&#8217;ve been banging my head against the code sample for a while now &#8211; as soon as I make EmployeeContext inherit from IEmployeeContext I get the following compile error:</p>
<p>&#8220;EFSample.EmployeeContext&#8217; does not implement interface member &#8216;EFSample.IEmployeeContext.Employees&#8217;. &#8216;EFSample.EmployeeContext.Employees&#8217; cannot implement &#8216;EFSample.IEmployeeContext.Employees&#8217; because it does not have the matching return type of &#8216;System.Data.Entity.IDbSet&#8221;</p>
<p>I know DbSet implements IDbSet because it&#8217;s right there in the metadata, so what am I missing?</p>
<p>All the code is copied and pasted and visually checked. I&#8217;ve been coding for some time now which makes me feel really stupid, I just can&#8217;t see the wood for the trees here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on EF CTP4 Tips &amp; Tricks: Running Additional DDL by EF4 Code First &#8211; Making Nice With Index&#8217;s - My Blog</title>
		<link>http://romiller.com/2010/07/31/ef-ctp4-tips-tricks-running-additional-ddl/#comment-1638</link>
		<dc:creator><![CDATA[EF4 Code First &#8211; Making Nice With Index&#8217;s - My Blog]]></dc:creator>
		<pubDate>Tue, 21 Feb 2012 18:29:26 +0000</pubDate>
		<guid isPermaLink="false">https://romillerblog.wordpress.com/2010/07/31/ef-ctp4-tips-tricks-running-additional-ddl/#comment-1638</guid>
		<description><![CDATA[[...] a flick through Google will eventually get you to this post at romiller.com which basically suggests that you add a custom initializer class to your DbContext and wire it up [...]]]></description>
		<content:encoded><![CDATA[<p>[...] a flick through Google will eventually get you to this post at romiller.com which basically suggests that you add a custom initializer class to your DbContext and wire it up [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running &amp; Scripting Migrations from Code by Lee Dumond</title>
		<link>http://romiller.com/2012/02/09/running-scripting-migrations-from-code/#comment-1634</link>
		<dc:creator><![CDATA[Lee Dumond]]></dc:creator>
		<pubDate>Sun, 19 Feb 2012 05:05:59 +0000</pubDate>
		<guid isPermaLink="false">https://romillerblog.wordpress.com/?p=248#comment-1634</guid>
		<description><![CDATA[Getting a very weird issue. I created a branch in Mercurial to do some experimenting. I inadvertently removed a navigation relationship from one of my entities and was warned on the next run that I need to add a migration. Since I never meant to remove that relationship, I did a complete revert on that entity (restoring it to its original state), but EF still insisted that a migration was needed. The migration that resulted was a complete mess -- it tried to add back the relationship I had originally removed (and now restored). Naturally the migration did not work, because it was now trying to add the same FK constraint twice.

In short, it seems there is no way to make EF &quot;forget&quot; that I temporarily changed my model and now want to leave it as it was. What is the mechanism by which EF senses that the model has changed? Is there any way to tell EF that NO, I DIDN&#039;T mean to change my model after all, and that in fact no migration is actually required?]]></description>
		<content:encoded><![CDATA[<p>Getting a very weird issue. I created a branch in Mercurial to do some experimenting. I inadvertently removed a navigation relationship from one of my entities and was warned on the next run that I need to add a migration. Since I never meant to remove that relationship, I did a complete revert on that entity (restoring it to its original state), but EF still insisted that a migration was needed. The migration that resulted was a complete mess &#8212; it tried to add back the relationship I had originally removed (and now restored). Naturally the migration did not work, because it was now trying to add the same FK constraint twice.</p>
<p>In short, it seems there is no way to make EF &#8220;forget&#8221; that I temporarily changed my model and now want to leave it as it was. What is the mechanism by which EF senses that the model has changed? Is there any way to tell EF that NO, I DIDN&#8217;T mean to change my model after all, and that in fact no migration is actually required?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running &amp; Scripting Migrations from Code by romiller.com</title>
		<link>http://romiller.com/2012/02/09/running-scripting-migrations-from-code/#comment-1633</link>
		<dc:creator><![CDATA[romiller.com]]></dc:creator>
		<pubDate>Fri, 17 Feb 2012 19:14:32 +0000</pubDate>
		<guid isPermaLink="false">https://romillerblog.wordpress.com/?p=248#comment-1633</guid>
		<description><![CDATA[There is no issue making the class public.]]></description>
		<content:encoded><![CDATA[<p>There is no issue making the class public.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running &amp; Scripting Migrations from Code by Lee Dumond</title>
		<link>http://romiller.com/2012/02/09/running-scripting-migrations-from-code/#comment-1632</link>
		<dc:creator><![CDATA[Lee Dumond]]></dc:creator>
		<pubDate>Fri, 17 Feb 2012 18:03:51 +0000</pubDate>
		<guid isPermaLink="false">https://romillerblog.wordpress.com/?p=248#comment-1632</guid>
		<description><![CDATA[I have my migrations in a class library. If I want to run them from my Web project in the Global.asax Application_Start method, there doesn&#039;t appear to be any way of doing that without marking the Configuration class public (by default is it marked internal). I did that and it seems to work okay. Can any harm and/or bad juju result from making the Configuration class public?]]></description>
		<content:encoded><![CDATA[<p>I have my migrations in a class library. If I want to run them from my Web project in the Global.asax Application_Start method, there doesn&#8217;t appear to be any way of doing that without marking the Configuration class public (by default is it marked internal). I did that and it seems to work okay. Can any harm and/or bad juju result from making the Configuration class public?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running &amp; Scripting Migrations from Code by romiller.com</title>
		<link>http://romiller.com/2012/02/09/running-scripting-migrations-from-code/#comment-1631</link>
		<dc:creator><![CDATA[romiller.com]]></dc:creator>
		<pubDate>Fri, 17 Feb 2012 17:53:04 +0000</pubDate>
		<guid isPermaLink="false">https://romillerblog.wordpress.com/?p=248#comment-1631</guid>
		<description><![CDATA[There is a public constant DbMigrator.InitialDatabase that you can pass as the target migration id.]]></description>
		<content:encoded><![CDATA[<p>There is a public constant DbMigrator.InitialDatabase that you can pass as the target migration id.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running &amp; Scripting Migrations from Code by romiller.com</title>
		<link>http://romiller.com/2012/02/09/running-scripting-migrations-from-code/#comment-1630</link>
		<dc:creator><![CDATA[romiller.com]]></dc:creator>
		<pubDate>Fri, 17 Feb 2012 17:50:27 +0000</pubDate>
		<guid isPermaLink="false">https://romillerblog.wordpress.com/?p=248#comment-1630</guid>
		<description><![CDATA[DbMigrator scans the assembly to look for classes deriving from DbMigration. By default it looks in the same assembly that the configuration class is defined in, but there is a MigrationsAssembly property that you can set on the configuration. Migrations maintains a table in the database to keep track of the migrations that have already been applied.]]></description>
		<content:encoded><![CDATA[<p>DbMigrator scans the assembly to look for classes deriving from DbMigration. By default it looks in the same assembly that the configuration class is defined in, but there is a MigrationsAssembly property that you can set on the configuration. Migrations maintains a table in the database to keep track of the migrations that have already been applied.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running &amp; Scripting Migrations from Code by Lee Dumond</title>
		<link>http://romiller.com/2012/02/09/running-scripting-migrations-from-code/#comment-1629</link>
		<dc:creator><![CDATA[Lee Dumond]]></dc:creator>
		<pubDate>Fri, 17 Feb 2012 16:42:51 +0000</pubDate>
		<guid isPermaLink="false">https://romillerblog.wordpress.com/?p=248#comment-1629</guid>
		<description><![CDATA[I don&#039;t see any way to migrate all the way down to an empty $InitialDatabase from code, like you can do in the Package Console. It appears that Update(string) only lets you downgrade to a previously &quot;named&quot; migration. Is that the case?]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t see any way to migrate all the way down to an empty $InitialDatabase from code, like you can do in the Package Console. It appears that Update(string) only lets you downgrade to a previously &#8220;named&#8221; migration. Is that the case?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Testing With a Fake DbContext by dotnetchris</title>
		<link>http://romiller.com/2012/02/14/testing-with-a-fake-dbcontext/#comment-1626</link>
		<dc:creator><![CDATA[dotnetchris]]></dc:creator>
		<pubDate>Wed, 15 Feb 2012 15:49:57 +0000</pubDate>
		<guid isPermaLink="false">https://romillerblog.wordpress.com/?p=258#comment-1626</guid>
		<description><![CDATA[Fantastic, generics were totally eaten from code my samples

List&lt;Department&gt; Departments = new List&lt;Department&gt; { …. anything you want in your “database&quot; };

The&lt;IEmployeeContext&gt;()
.WhenToldTo(x =&gt; x.Departments.GetEnumerator())
.Return(Departments.GetEnumerator());

This will cover all of the querying you could want to do on IDbSet Departments

To handle add you would just need to do something like

The&lt;IEmployeeContext&gt;()
.WhenToldTo(x =&gt; x.Departments.Add(Param&lt;Department&gt;.IsNotNull))
.Return&lt;Department&gt;(param=&gt;{Departments.Add(param);
return param;
});

If you need to connect other methods like Find/Remove etc, you can easily do that too. Also with machine.fakes it&#039;s possible for you to write this code and have it be shared very trivially see the CurrentTime example on https://github.com/BjRo/Machine.Fakes documentation]]></description>
		<content:encoded><![CDATA[<p>Fantastic, generics were totally eaten from code my samples</p>
<p>List&lt;Department&gt; Departments = new List&lt;Department&gt; { …. anything you want in your “database&#8221; };</p>
<p>The&lt;IEmployeeContext&gt;()<br />
.WhenToldTo(x =&gt; x.Departments.GetEnumerator())<br />
.Return(Departments.GetEnumerator());</p>
<p>This will cover all of the querying you could want to do on IDbSet Departments</p>
<p>To handle add you would just need to do something like</p>
<p>The&lt;IEmployeeContext&gt;()<br />
.WhenToldTo(x =&gt; x.Departments.Add(Param&lt;Department&gt;.IsNotNull))<br />
.Return&lt;Department&gt;(param=&gt;{Departments.Add(param);<br />
return param;<br />
});</p>
<p>If you need to connect other methods like Find/Remove etc, you can easily do that too. Also with machine.fakes it&#8217;s possible for you to write this code and have it be shared very trivially see the CurrentTime example on <a href="https://github.com/BjRo/Machine.Fakes" rel="nofollow">https://github.com/BjRo/Machine.Fakes</a> documentation</p>
]]></content:encoded>
	</item>
</channel>
</rss>

