<?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/"
	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>Craig's Blog</title>
	<atom:link href="http://cpope.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cpope.wordpress.com</link>
	<description>Welcome to my world.  Glad you stopped by.</description>
	<lastBuildDate>Wed, 11 Mar 2009 16:27:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='cpope.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Craig's Blog</title>
		<link>http://cpope.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://cpope.wordpress.com/osd.xml" title="Craig&#039;s Blog" />
	<atom:link rel='hub' href='http://cpope.wordpress.com/?pushpress=hub'/>
		<item>
		<title>It&#8217;s The Small Things</title>
		<link>http://cpope.wordpress.com/2009/03/11/its-the-small-things/</link>
		<comments>http://cpope.wordpress.com/2009/03/11/its-the-small-things/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 16:27:04 +0000</pubDate>
		<dc:creator>cpope</dc:creator>
				<category><![CDATA[.Net]]></category>

		<guid isPermaLink="false">http://cpope.wordpress.com/2009/03/11/its-the-small-things/</guid>
		<description><![CDATA[I just spent way too long debugging a Windows service, only to find out the code I was debugging was no longer even used. It had been pulled out to a separate class, but when it was the original code (which happened to be where my breakpoints were) was left behind. All that to say [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cpope.wordpress.com&amp;blog=6043087&amp;post=20&amp;subd=cpope&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just spent way too long debugging a Windows service, only to find out the code I was debugging was no longer even used. It had been pulled out to a separate class, but when it was the original code (which happened to be where my breakpoints were) was left behind.</p>
<p>All that to say when you refactor, delete stuff you&#8217;re not using. Make decluttering part of what you do. It keeps code clean, and makes eveyone&#8217;s life (incuding yours) that much simpler.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cpope.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cpope.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cpope.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cpope.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cpope.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cpope.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cpope.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cpope.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cpope.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cpope.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cpope.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cpope.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cpope.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cpope.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cpope.wordpress.com&amp;blog=6043087&amp;post=20&amp;subd=cpope&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cpope.wordpress.com/2009/03/11/its-the-small-things/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4639b898f00a80921eb1c01b3d870f6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cpope</media:title>
		</media:content>
	</item>
		<item>
		<title>Entity Framework &amp; Left Outer Joins</title>
		<link>http://cpope.wordpress.com/2009/01/14/entity-framework-left-outer-joins/</link>
		<comments>http://cpope.wordpress.com/2009/01/14/entity-framework-left-outer-joins/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 03:23:43 +0000</pubDate>
		<dc:creator>cpope</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Entity Framework]]></category>

		<guid isPermaLink="false">http://cpope.wordpress.com/?p=16</guid>
		<description><![CDATA[So I was racking my brain trying to figure out how to do left outer joins in the Entity Framework.  Several blog posts had some ideas, when suddenly I realized a very simple solution.  Simply query the entity you&#8217;re interested in, include the joined entity, and then check the count on the join.  The assumption is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cpope.wordpress.com&amp;blog=6043087&amp;post=16&amp;subd=cpope&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I was racking my brain trying to figure out how to do left outer joins in the Entity Framework.  Several blog posts had some ideas, when suddenly I realized a very simple solution.  Simply query the entity you&#8217;re interested in, include the joined entity, and then check the count on the join.  The assumption is that you have an association between the two, which you should anyway.  Here are a few examples. </p>
<blockquote><p> <br />
<span style="color:#008000;">// returns a count of all dogs<br />
</span><span style="color:#0000ff;">int</span> i = context.Dogs.Include(<span style="color:#a31515;">&#8220;DogsFedToday&#8221;</span>)<br />
.Count(); </p>
<p><span style="color:#008000;">// returns a count of all dogs not fed today<br />
</span><span style="color:#0000ff;">int</span> j = context.Dogs.Include(<span style="color:#a31515;">&#8220;DogsFedToday&#8221;</span>)<br />
.Where(x =&gt; x.DogsFedToday.Count == 0)<br />
.Count(); </p>
<p><span style="color:#008000;">// returns a count of all dogs fed today<br />
</span><span style="color:#0000ff;">int</span> k = context.Dogs.Include(<span style="color:#a31515;">&#8220;DogsFedToday&#8221;</span>)<br />
.Where(x =&gt; x.DogsFedToday.Count &gt; 0)<br />
.Count();<br />
 </p></blockquote>
<p>If you&#8217;ve got other ways that are less taxing, more efficeint, or just easier, I&#8217;m all ears.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cpope.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cpope.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cpope.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cpope.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cpope.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cpope.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cpope.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cpope.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cpope.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cpope.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cpope.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cpope.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cpope.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cpope.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cpope.wordpress.com&amp;blog=6043087&amp;post=16&amp;subd=cpope&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cpope.wordpress.com/2009/01/14/entity-framework-left-outer-joins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4639b898f00a80921eb1c01b3d870f6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cpope</media:title>
		</media:content>
	</item>
		<item>
		<title>Entity Framework Inheritance and Associations</title>
		<link>http://cpope.wordpress.com/2009/01/10/entity-framework-inheritance-and-associations/</link>
		<comments>http://cpope.wordpress.com/2009/01/10/entity-framework-inheritance-and-associations/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 23:09:19 +0000</pubDate>
		<dc:creator>cpope</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Entity Framework]]></category>

		<guid isPermaLink="false">http://cpope.wordpress.com/?p=12</guid>
		<description><![CDATA[If you can&#8217;t tell, I like to post things that either (1) I think might help out someone else or (2) I know I&#8217;ll want to know how to do again in the future.  This post is definitely a (2). I&#8217;ve been working with Microsoft&#8217;s Entity Framework since beta, and must say it&#8217;s one of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cpope.wordpress.com&amp;blog=6043087&amp;post=12&amp;subd=cpope&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you can&#8217;t tell, I like to post things that either (1) I think might help out someone else or (2) I know I&#8217;ll want to know how to do again in the future.  This post is definitely a (2).</p>
<p>I&#8217;ve been working with Microsoft&#8217;s Entity Framework since beta, and must say it&#8217;s one of the greatest developer productivity enhancers I&#8217;ve seen in a long time.  Today I was working on inheriting from an entity and then associating that inherited entity.  After several failed attempts on my own, I found <a href="http://mosesofegypt.net/post/Inheritance-and-Associations-with-Entity-Framework-Part-1.aspx" target="_blank">a great tutorial </a>addressing just this.</p>
<p>Thanks, Moses.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cpope.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cpope.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cpope.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cpope.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cpope.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cpope.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cpope.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cpope.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cpope.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cpope.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cpope.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cpope.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cpope.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cpope.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cpope.wordpress.com&amp;blog=6043087&amp;post=12&amp;subd=cpope&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cpope.wordpress.com/2009/01/10/entity-framework-inheritance-and-associations/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4639b898f00a80921eb1c01b3d870f6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cpope</media:title>
		</media:content>
	</item>
		<item>
		<title>Datasets in Silverlight</title>
		<link>http://cpope.wordpress.com/2009/01/07/datasets-in-silverlight/</link>
		<comments>http://cpope.wordpress.com/2009/01/07/datasets-in-silverlight/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 19:21:37 +0000</pubDate>
		<dc:creator>cpope</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://cpope.wordpress.com/?p=8</guid>
		<description><![CDATA[I&#8217;ve been working on a project porting ASP.Net code to Silverlight.  In the old code, we had a dashboard widget to query data and return the results in a grid.  It was trivial to do this with datasets &#8211; just query the data, return the dataset, then bind it to a GridView or DataGrid.  The columns and rows [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cpope.wordpress.com&amp;blog=6043087&amp;post=8&amp;subd=cpope&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a project porting ASP.Net code to Silverlight.  In the old code, we had a dashboard widget to query data and return the results in a grid.  It was trivial to do this with datasets &#8211; just query the data, return the dataset, then bind it to a GridView or DataGrid.  The columns and rows were all automatically generated.</p>
<p>I&#8217;m fairly new to WCF and Silverlight, but quickly realized that WCF wanted a contract.  That didn&#8217;t exactly fit our dynamic model.  We tried returning the query results via WCF as an XML string, and then parsing the string into XML in Silverlight and binding to a DataGrid, but the results were not always formatted  like we expected.</p>
<p>Finally someone on our team found <a title="a post" href="http://silverlight.net/forums/p/16733/75351.aspx" target="_blank">a post</a> in the Silverlight forums that was exactly what we were looking for.  They basically create a few custom classes and then pull them into Silverlight as an ObservableCollection.  Since it took us so long to find it, I thought I&#8217;d post it here in hopes that it helps someone else out down the road.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cpope.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cpope.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cpope.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cpope.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cpope.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cpope.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cpope.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cpope.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cpope.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cpope.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cpope.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cpope.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cpope.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cpope.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cpope.wordpress.com&amp;blog=6043087&amp;post=8&amp;subd=cpope&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cpope.wordpress.com/2009/01/07/datasets-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4639b898f00a80921eb1c01b3d870f6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cpope</media:title>
		</media:content>
	</item>
		<item>
		<title>Welcome, 2k9</title>
		<link>http://cpope.wordpress.com/2009/01/04/welcome-2k9/</link>
		<comments>http://cpope.wordpress.com/2009/01/04/welcome-2k9/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 03:24:15 +0000</pubDate>
		<dc:creator>cpope</dc:creator>
				<category><![CDATA[humor]]></category>

		<guid isPermaLink="false">http://cpope.wordpress.com/?p=3</guid>
		<description><![CDATA[I told myself I&#8217;d start blogging this year, so here goes.  I saw this little ditty while out grabbing pizza with the family tonight. Yeah, that&#8217;s how my since of humor is.  Welcome to my world.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cpope.wordpress.com&amp;blog=6043087&amp;post=3&amp;subd=cpope&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I told myself I&#8217;d start blogging this year, so here goes.  I saw this little ditty while out grabbing pizza with the family tonight.</p>
<p><img class="aligncenter size-full wp-image-4" title="pizza" src="http://cpope.files.wordpress.com/2009/01/img_0074.jpg?w=450&#038;h=337" alt="pizza" width="450" height="337" /></p>
<p>Yeah, that&#8217;s how my since of humor is.  Welcome to my world.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cpope.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cpope.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cpope.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cpope.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cpope.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cpope.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cpope.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cpope.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cpope.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cpope.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cpope.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cpope.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cpope.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cpope.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cpope.wordpress.com&amp;blog=6043087&amp;post=3&amp;subd=cpope&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://cpope.wordpress.com/2009/01/04/welcome-2k9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4639b898f00a80921eb1c01b3d870f6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cpope</media:title>
		</media:content>

		<media:content url="http://cpope.files.wordpress.com/2009/01/img_0074.jpg" medium="image">
			<media:title type="html">pizza</media:title>
		</media:content>
	</item>
	</channel>
</rss>
