<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>I Can't Believe That Worked</title><link>http://azurecoding.net/blogs/icbtw/default.aspx</link><description>Code and Ideas, minus the profanity (the one language all developers know)

</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ICantBelieveThatWorked" /><feedburner:info uri="icantbelievethatworked" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FICantBelieveThatWorked" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FICantBelieveThatWorked" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FICantBelieveThatWorked" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/ICantBelieveThatWorked" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FICantBelieveThatWorked" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FICantBelieveThatWorked" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FICantBelieveThatWorked" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:browserFriendly>Welcome to the I can't believe that worked! Rock on and have a fantabulous day ;).</feedburner:browserFriendly><item><title>Silverlight Bing Maps Control and Drag &amp; Drop</title><link>http://azurecoding.net/blogs/icbtw/archive/2010/04/17/silverlight-bing-maps-control-and-drag-amp-drop.aspx</link><pubDate>Sat, 17 Apr 2010 19:57:00 GMT</pubDate><guid isPermaLink="false">6e97e1e3-dc93-4c0d-b73f-e698f7d56013:6234</guid><dc:creator>David Justice</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://azurecoding.net/blogs/icbtw/rsscomments.aspx?PostID=6234</wfw:commentRss><wfw:comment>http://azurecoding.net/blogs/icbtw/commentapi.aspx?PostID=6234</wfw:comment><comments>http://azurecoding.net/blogs/icbtw/archive/2010/04/17/silverlight-bing-maps-control-and-drag-amp-drop.aspx#comments</comments><description>&lt;p&gt;I was recently asked to build up a Silverlight tool to show a file full 
of addresses on a map. I decided to use the Silverlight bing maps 
control and I must say I was not disappointed with it&amp;#39;s functionality. 
It ended up being extremely simple. The tools used to create this were 
VS2010, Silverlight 4, Bing maps Silverlight control, and the Bing maps 
web services.&lt;/p&gt;...(&lt;a href="http://azurecoding.net/blogs/icbtw/archive/2010/04/17/silverlight-bing-maps-control-and-drag-amp-drop.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://azurecoding.net/aggbug.aspx?PostID=6234" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=hEB9C9zatB0:mVlYtSPX1X4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=hEB9C9zatB0:mVlYtSPX1X4:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=hEB9C9zatB0:mVlYtSPX1X4:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=hEB9C9zatB0:mVlYtSPX1X4:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=hEB9C9zatB0:mVlYtSPX1X4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=hEB9C9zatB0:mVlYtSPX1X4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=hEB9C9zatB0:mVlYtSPX1X4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=hEB9C9zatB0:mVlYtSPX1X4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=hEB9C9zatB0:mVlYtSPX1X4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Silverlight/default.aspx">Silverlight</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Bing+Maps/default.aspx">Bing Maps</category></item><item><title>XAML Default Button</title><link>http://azurecoding.net/blogs/icbtw/archive/2009/09/02/xaml-default-button.aspx</link><pubDate>Wed, 02 Sep 2009 11:20:00 GMT</pubDate><guid isPermaLink="false">6e97e1e3-dc93-4c0d-b73f-e698f7d56013:2401</guid><dc:creator>David Justice</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://azurecoding.net/blogs/icbtw/rsscomments.aspx?PostID=2401</wfw:commentRss><wfw:comment>http://azurecoding.net/blogs/icbtw/commentapi.aspx?PostID=2401</wfw:comment><comments>http://azurecoding.net/blogs/icbtw/archive/2009/09/02/xaml-default-button.aspx#comments</comments><description>&lt;p&gt;I was working with a client that wanted to have a default button clicked when an enter key is pressed in a textbox (password box to be more specific) within a Silverlight or WPF application. I didn&amp;#39;t think much of it. I&amp;#39;ll just listen to the event, bind to the button, and click the button on the enter key event. The listening and binding portion is not very tough with an attached property and a little Silverlight 3 element to element binding love. The tricky part came in when I wanted to cause the button click event to be raised. I ended up having to take a page from Josh Smith&amp;nbsp;&lt;a href="http://joshsmithonwpf.wordpress.com/2007/03/09/how-to-programmatically-click-a-button/"&gt;http://joshsmithonwpf.wordpress.com/2007/03/09/how-to-programmatically-click-a-button/&lt;/a&gt;. Thank you, Josh! This may not be the best way to do this, but it works for me.&lt;/p&gt;...(&lt;a href="http://azurecoding.net/blogs/icbtw/archive/2009/09/02/xaml-default-button.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://azurecoding.net/aggbug.aspx?PostID=2401" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=4SPcevCkrmM:V-E3I-Ok1Vg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=4SPcevCkrmM:V-E3I-Ok1Vg:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=4SPcevCkrmM:V-E3I-Ok1Vg:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=4SPcevCkrmM:V-E3I-Ok1Vg:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=4SPcevCkrmM:V-E3I-Ok1Vg:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=4SPcevCkrmM:V-E3I-Ok1Vg:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=4SPcevCkrmM:V-E3I-Ok1Vg:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=4SPcevCkrmM:V-E3I-Ok1Vg:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=4SPcevCkrmM:V-E3I-Ok1Vg:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Silverlight/default.aspx">Silverlight</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/WPF/default.aspx">WPF</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Attached+Properties/default.aspx">Attached Properties</category></item><item><title>Genetic Algorithm -- Add Ur Own Func :)</title><link>http://azurecoding.net/blogs/icbtw/archive/2009/06/29/genetic-algorithm-add-ur-own-func.aspx</link><pubDate>Mon, 29 Jun 2009 05:34:00 GMT</pubDate><guid isPermaLink="false">6e97e1e3-dc93-4c0d-b73f-e698f7d56013:1336</guid><dc:creator>David Justice</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://azurecoding.net/blogs/icbtw/rsscomments.aspx?PostID=1336</wfw:commentRss><wfw:comment>http://azurecoding.net/blogs/icbtw/commentapi.aspx?PostID=1336</wfw:comment><comments>http://azurecoding.net/blogs/icbtw/archive/2009/06/29/genetic-algorithm-add-ur-own-func.aspx#comments</comments><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I was a little bored this weekend and needed to add in some GA functionality to a side project. I felt like it would be best to create a simple executer to deal with the iterative behavior of a genetic algorithm. The&amp;nbsp;&lt;span&gt;executer&amp;nbsp;&lt;/span&gt;take in funcs provided by the consumer and executes based on a simple iterative model. Below is what I came up with. Cheers!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;...(&lt;a href="http://azurecoding.net/blogs/icbtw/archive/2009/06/29/genetic-algorithm-add-ur-own-func.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://azurecoding.net/aggbug.aspx?PostID=1336" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=pq66rTzv5Ig:VPQK-5JW3e8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=pq66rTzv5Ig:VPQK-5JW3e8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=pq66rTzv5Ig:VPQK-5JW3e8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=pq66rTzv5Ig:VPQK-5JW3e8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=pq66rTzv5Ig:VPQK-5JW3e8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=pq66rTzv5Ig:VPQK-5JW3e8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=pq66rTzv5Ig:VPQK-5JW3e8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=pq66rTzv5Ig:VPQK-5JW3e8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=pq66rTzv5Ig:VPQK-5JW3e8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><enclosure url="http://azurecoding.net/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.13.36/GA.zip" length="45494" type="application/x-zip-compressed" /><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Genetic+Algorithm/default.aspx">Genetic Algorithm</category></item><item><title>.Net 4.0 Reflection vs. Dynamics vs. Property Setting With Times</title><link>http://azurecoding.net/blogs/icbtw/archive/2009/06/26/net_5F00_4_5F00_0_5F00_reflection_5F00_vs_5F00_dynamics_5F00_vs_5F00_property_5F00_setting_5F00_with_5F00_times.aspx</link><pubDate>Fri, 26 Jun 2009 13:26:00 GMT</pubDate><guid isPermaLink="false">6e97e1e3-dc93-4c0d-b73f-e698f7d56013:1309</guid><dc:creator>David Justice</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://azurecoding.net/blogs/icbtw/rsscomments.aspx?PostID=1309</wfw:commentRss><wfw:comment>http://azurecoding.net/blogs/icbtw/commentapi.aspx?PostID=1309</wfw:comment><comments>http://azurecoding.net/blogs/icbtw/archive/2009/06/26/net_5F00_4_5F00_0_5F00_reflection_5F00_vs_5F00_dynamics_5F00_vs_5F00_property_5F00_setting_5F00_with_5F00_times.aspx#comments</comments><description>&lt;p&gt;
&lt;p&gt;Today I found my self hanging out after a sprint review with my partner in crime&amp;nbsp;&lt;a target="_blank" title="@sundriedcoder" href="http://twitter.com/sundriedcoder"&gt;Kevin Rohling&lt;/a&gt;. &amp;nbsp;TFS was down (not tfs&amp;#39;s fault, but some other freak accident...) and I hadn&amp;#39;t installed VS 2010 yet, so it seemed like the perfect time to do such things. I got everything up and running, and Kevin and I got into a discussion about Dynamics &amp;amp; performance. We made a quick lunch bet on which is faster, reflection or dynamics for simply setting a property. I figured reflection would be quicker, while Kevin thought dynamics would be faster. Well, I owe him lunch now. The code is below.&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/p&gt;...(&lt;a href="http://azurecoding.net/blogs/icbtw/archive/2009/06/26/net_5F00_4_5F00_0_5F00_reflection_5F00_vs_5F00_dynamics_5F00_vs_5F00_property_5F00_setting_5F00_with_5F00_times.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://azurecoding.net/aggbug.aspx?PostID=1309" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=YZgHLcrgQcA:CUSavTLabtE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=YZgHLcrgQcA:CUSavTLabtE:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=YZgHLcrgQcA:CUSavTLabtE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=YZgHLcrgQcA:CUSavTLabtE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=YZgHLcrgQcA:CUSavTLabtE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=YZgHLcrgQcA:CUSavTLabtE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=YZgHLcrgQcA:CUSavTLabtE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=YZgHLcrgQcA:CUSavTLabtE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=YZgHLcrgQcA:CUSavTLabtE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><enclosure url="http://azurecoding.net/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.13.09/Program.zip" length="565" type="application/x-zip-compressed" /><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/.NET+4.0/default.aspx">.NET 4.0</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/new+cloud+app/default.aspx">new cloud app</category></item><item><title>Silverlight Facebook Client Side API v0.001</title><link>http://azurecoding.net/blogs/icbtw/archive/2009/01/22/silverlight-facebook-api.aspx</link><pubDate>Thu, 22 Jan 2009 05:30:00 GMT</pubDate><guid isPermaLink="false">6e97e1e3-dc93-4c0d-b73f-e698f7d56013:185</guid><dc:creator>David Justice</dc:creator><slash:comments>8</slash:comments><wfw:commentRss>http://azurecoding.net/blogs/icbtw/rsscomments.aspx?PostID=185</wfw:commentRss><wfw:comment>http://azurecoding.net/blogs/icbtw/commentapi.aspx?PostID=185</wfw:comment><comments>http://azurecoding.net/blogs/icbtw/archive/2009/01/22/silverlight-facebook-api.aspx#comments</comments><description>&lt;p&gt;In a past post (&lt;a href="/blogs/icbtw/archive/2008/12/04/azure_5F00_facebook_5F00_connect_5F00_silverlight_5F00_fun.aspx" title="Facebook Connect Post" target="_blank"&gt;Facebook Connect Post&lt;/a&gt;) I showed everyone how to set up an application in Facebook and how to use Facebook Connect with Silverlight to create a simple login screen. &amp;nbsp;That was a trivial proof of concept to show how one might implement such things on their Silverlight App. &amp;nbsp;This post will build on the previous post, and introduce a very alpha version of a Silverlight client side api I have been working on for a little bit.&amp;nbsp;&lt;/p&gt;...(&lt;a href="http://azurecoding.net/blogs/icbtw/archive/2009/01/22/silverlight-facebook-api.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://azurecoding.net/aggbug.aspx?PostID=185" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=XPsQT_2kxeY:UamO2OWxc74:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=XPsQT_2kxeY:UamO2OWxc74:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=XPsQT_2kxeY:UamO2OWxc74:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=XPsQT_2kxeY:UamO2OWxc74:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=XPsQT_2kxeY:UamO2OWxc74:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=XPsQT_2kxeY:UamO2OWxc74:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=XPsQT_2kxeY:UamO2OWxc74:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=XPsQT_2kxeY:UamO2OWxc74:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=XPsQT_2kxeY:UamO2OWxc74:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><enclosure url="http://azurecoding.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/icbtw/SilverlightFacebook.zip" length="168486" type="application/x-compressed" /><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Silverlight+2/default.aspx">Silverlight 2</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Facebook/default.aspx">Facebook</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Facebook+Connect/default.aspx">Facebook Connect</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Blacklight/default.aspx">Blacklight</category></item><item><title>Azure 1/10 + Facebook Connect 1/2 + Silverlight 2/5 = Fun</title><link>http://azurecoding.net/blogs/icbtw/archive/2008/12/04/azure_5F00_facebook_5F00_connect_5F00_silverlight_5F00_fun.aspx</link><pubDate>Thu, 04 Dec 2008 16:46:00 GMT</pubDate><guid isPermaLink="false">6e97e1e3-dc93-4c0d-b73f-e698f7d56013:75</guid><dc:creator>David Justice</dc:creator><slash:comments>10</slash:comments><wfw:commentRss>http://azurecoding.net/blogs/icbtw/rsscomments.aspx?PostID=75</wfw:commentRss><wfw:comment>http://azurecoding.net/blogs/icbtw/commentapi.aspx?PostID=75</wfw:comment><comments>http://azurecoding.net/blogs/icbtw/archive/2008/12/04/azure_5F00_facebook_5F00_connect_5F00_silverlight_5F00_fun.aspx#comments</comments><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hello all! &amp;nbsp;First off, I want to say this post does not reflect the way I think authentication should be handled. &amp;nbsp;I don&amp;#39;t necessarily agree with the route Facebook has decided to go with Connect, but that is a debate I don&amp;#39;t really wish to be a part of right now. &amp;nbsp;I would like to concentrate on the superlatives about Facebook Connect and the possibilities this opens up to developers. &amp;nbsp;If you wish to discuss the positives and negatives of the Facebook Connect strategy, please be my guest to comment till your angelic heart is content.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In this post, I&amp;#39;m going to set up an Azure cloud service project with a single web role that hosts a Silverlight 2 page, which utilizes Facebook Connect. &amp;nbsp;I will not go into other portions of the Facebook API during this post, but I will extend it in a later post. &amp;nbsp;Basically this is 1/10 an excersize in creating a cloud service, 1/2 using Facebook connect, and about 2/5 interactions between JavaScript and Silverlight. &amp;nbsp;Ok, let&amp;#39;s get started.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;...(&lt;a href="http://azurecoding.net/blogs/icbtw/archive/2008/12/04/azure_5F00_facebook_5F00_connect_5F00_silverlight_5F00_fun.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://azurecoding.net/aggbug.aspx?PostID=75" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=tEmQGDhfhn8:d9K1CGllsbE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=tEmQGDhfhn8:d9K1CGllsbE:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=tEmQGDhfhn8:d9K1CGllsbE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=tEmQGDhfhn8:d9K1CGllsbE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=tEmQGDhfhn8:d9K1CGllsbE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=tEmQGDhfhn8:d9K1CGllsbE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=tEmQGDhfhn8:d9K1CGllsbE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=tEmQGDhfhn8:d9K1CGllsbE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=tEmQGDhfhn8:d9K1CGllsbE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Azure/default.aspx">Azure</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Facebook/default.aspx">Facebook</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Facebook+Connect/default.aspx">Facebook Connect</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>Silverlight 2 XAML Binding and Custom / Core Dependency Properties</title><link>http://azurecoding.net/blogs/icbtw/archive/2008/11/23/silverlight-2-xaml-binding-and-custom-core-dependency-properties.aspx</link><pubDate>Sun, 23 Nov 2008 09:14:00 GMT</pubDate><guid isPermaLink="false">6e97e1e3-dc93-4c0d-b73f-e698f7d56013:57</guid><dc:creator>David Justice</dc:creator><slash:comments>5</slash:comments><wfw:commentRss>http://azurecoding.net/blogs/icbtw/rsscomments.aspx?PostID=57</wfw:commentRss><wfw:comment>http://azurecoding.net/blogs/icbtw/commentapi.aspx?PostID=57</wfw:comment><comments>http://azurecoding.net/blogs/icbtw/archive/2008/11/23/silverlight-2-xaml-binding-and-custom-core-dependency-properties.aspx#comments</comments><description>Lately, I have been working in Silverlight 2 quite a bit. I have been infused with inspiration from the Chicago PhizzPop Design Challenge . I&amp;#39;m waiting for the pictures and vids from a couple people to be served. I will be linking them into the blog...(&lt;a href="http://azurecoding.net/blogs/icbtw/archive/2008/11/23/silverlight-2-xaml-binding-and-custom-core-dependency-properties.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://azurecoding.net/aggbug.aspx?PostID=57" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=egSLORLAaaw:V85vJPJZivM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=egSLORLAaaw:V85vJPJZivM:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=egSLORLAaaw:V85vJPJZivM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=egSLORLAaaw:V85vJPJZivM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=egSLORLAaaw:V85vJPJZivM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=egSLORLAaaw:V85vJPJZivM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=egSLORLAaaw:V85vJPJZivM:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=egSLORLAaaw:V85vJPJZivM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=egSLORLAaaw:V85vJPJZivM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Silverlight+2/default.aspx">Silverlight 2</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Binding/default.aspx">Binding</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Dependency+Property/default.aspx">Dependency Property</category></item><item><title>Silver Lining for Windows Azure -- Silverlight 2 Sample Hosted in Azure</title><link>http://azurecoding.net/blogs/icbtw/archive/2008/11/08/silver-lining-for-windows-azure-silverlight-2-sample-hosted-in-azure.aspx</link><pubDate>Sat, 08 Nov 2008 07:00:00 GMT</pubDate><guid isPermaLink="false">6e97e1e3-dc93-4c0d-b73f-e698f7d56013:25</guid><dc:creator>David Justice</dc:creator><slash:comments>10</slash:comments><wfw:commentRss>http://azurecoding.net/blogs/icbtw/rsscomments.aspx?PostID=25</wfw:commentRss><wfw:comment>http://azurecoding.net/blogs/icbtw/commentapi.aspx?PostID=25</wfw:comment><comments>http://azurecoding.net/blogs/icbtw/archive/2008/11/08/silver-lining-for-windows-azure-silverlight-2-sample-hosted-in-azure.aspx#comments</comments><description>&lt;p&gt;OK, so I&amp;#39;m starting to sound repetitive about my excitement around
Windows Azure, but I really think it will help developers create new products
with an all time low cost to enter their specific market.&amp;nbsp;&amp;nbsp; Not only will it cost less to enter into
their market, I think it will help them scale their service offerings as their
business grows.&amp;nbsp; We all want our
businesses to grow, but many of the initial development choices one makes when
driving to release a product do not always make sense when your customer base
grows in a few orders of magnitude.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also stoked about the &lt;a target="_blank" title="Silverlight Toolkit" href="http://www.codeplex.com/Silverlight"&gt;Silverlight Toolkit&lt;/a&gt; released 10.29.2008
(haven&amp;#39;t used stoked in a while - I wonder if I can bring it back...).&amp;nbsp; These controls make developing for
Silverlight a real joy.&amp;nbsp; I was skeptical about
the Silverlight 1 release, as well as the initial release of WPF (which is like
forever ago), not because of the architecture or technology, but because of the
lack of controls.&amp;nbsp; In the case of WPF, many
of my fellow developers refused to move from Windows Forms, because of the rich
tool sets they already had.&amp;nbsp; I think MS
heard the call and has worked to remedy the situation.&lt;/p&gt;
&lt;p&gt;I melded an Azure Web Role project and the Silverlight Toolkit
sample to give you guys a quick download, so you can play with them
together.&amp;nbsp; I hope you like it, and I hope
it helps you explore some of the new technology.&amp;nbsp; I call it &lt;a href="http://devplanet.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/justice/SilverLining.zip" title="SiverLining.zip" target="_self"&gt;SilverLining&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll need the &lt;a href="http://www.microsoft.com/azure/sdk.mspx" title="Azure SDK" target="_blank"&gt;Azure SDK&lt;/a&gt;, and &lt;a href="http://silverlight.net/GetStarted/" title="Silverlight Get Started" target="_blank"&gt;Silverlight tools&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://twitter.com/davidjustice"&gt;Twitter: @DavidJustice&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://azurecoding.net/aggbug.aspx?PostID=25" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=TAmwDT1OLuY:ylpYsr2FLE4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=TAmwDT1OLuY:ylpYsr2FLE4:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=TAmwDT1OLuY:ylpYsr2FLE4:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=TAmwDT1OLuY:ylpYsr2FLE4:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=TAmwDT1OLuY:ylpYsr2FLE4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=TAmwDT1OLuY:ylpYsr2FLE4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=TAmwDT1OLuY:ylpYsr2FLE4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=TAmwDT1OLuY:ylpYsr2FLE4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=TAmwDT1OLuY:ylpYsr2FLE4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Azure/default.aspx">Azure</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Windows+Azure/default.aspx">Windows Azure</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Silverlight+Toolkit/default.aspx">Silverlight Toolkit</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Silverlight+2/default.aspx">Silverlight 2</category></item><item><title>Unique Identifier Flat File Import with SSIS</title><link>http://azurecoding.net/blogs/icbtw/archive/2008/11/07/unique-identifier-flat-file-import-with-ssis.aspx</link><pubDate>Fri, 07 Nov 2008 07:44:00 GMT</pubDate><guid isPermaLink="false">6e97e1e3-dc93-4c0d-b73f-e698f7d56013:20</guid><dc:creator>David Justice</dc:creator><slash:comments>4</slash:comments><wfw:commentRss>http://azurecoding.net/blogs/icbtw/rsscomments.aspx?PostID=20</wfw:commentRss><wfw:comment>http://azurecoding.net/blogs/icbtw/commentapi.aspx?PostID=20</wfw:comment><comments>http://azurecoding.net/blogs/icbtw/archive/2008/11/07/unique-identifier-flat-file-import-with-ssis.aspx#comments</comments><description>&lt;p&gt;This morning I found myself wrestling with SSIS to convert a
string from a flat file to a unique identifier via a Data Flow inside of an
SSIS package. &amp;nbsp;I figured this would be a rather trivial case&amp;nbsp;(the midget was kicking my ass!). &amp;nbsp;I use
guids all over for application development and for database keys. &amp;nbsp;They
are very useful, and very dependable. &amp;nbsp;Here is a
line from my flat file:&lt;/p&gt;
&lt;p&gt;61898d4c-3a1b-4736-9a36-eb90a23322e0|:|10/13/2008 11:59:58
PM|:|74afebfe-9523-4977-b5f6-5154b6c91211&lt;/p&gt;
&lt;p&gt;Anyone see anything wrong with this? &amp;nbsp;I didn&amp;#39;t see anything
wrong, outside of the silly |:| delimiter (I don&amp;#39;t want to get started on that
&amp;lt;rant/&amp;gt; &amp;lt;--- rant with no content!).&amp;nbsp; &lt;/p&gt;
&lt;p&gt;So moving forward, I created a Flat File Source, pointed to the
file, had it guess the appropriate type for import (it selected a 36 character
dt_str - fine with me), and then went into the advanced edit section and
changed the output for the column to be a unique identifier.&amp;nbsp; I would expect the conversation to take place
in the middle somewhere, and if the powers that be smile kindly upon me, all
should work out well.&amp;nbsp; Unfortunately, I
would get an error about truncating data, &amp;quot;The value could not be
converted because of a potential loss of data.&amp;quot;&amp;nbsp; I was very confused by this.&amp;nbsp; I tried to push the string input from the
flat file data through a Data Converter step and do the conversion there, but
that had the same results.&amp;nbsp; Basically
from that point on for about an hour, I tried every different way I could think
of to convert that guid string into a SQL unique identifier.&lt;/p&gt;
&lt;p&gt;Eventually I gave up.&amp;nbsp; The
web turned up little help, and I was nearing my wits end.&amp;nbsp; I don&amp;#39;t enjoy working on SSIS packages, and
this was not helping.&amp;nbsp; Thankfully, I have
an in-house SQL ROCKSTAR!!&amp;nbsp; My good
friend &lt;a href="http://devplanet.com/members/Chuck/default.aspx" target="_blank"&gt;Chuck&lt;/a&gt; (a
SQL MVP) has helped me though all sorts of SQL issues in the past.&amp;nbsp; I asked him about this issue, and although he
wasn&amp;#39;t completely sure, he thought the error might be because I didn&amp;#39;t wrap the
guid strings in braces.&amp;nbsp; &amp;lt;rant&amp;gt; I
thought he was absolutely insane!&amp;nbsp; Why
the heck would SSIS expect those guids to be in braces!?&amp;nbsp; Why couldn&amp;#39;t it cast them as unique
identifiers?&amp;nbsp; I can say &amp;lsquo;61898d4c-3a1b-4736-9a36-eb90a23322e0&amp;#39;
as uniqueidentifier, and the T-SQL world doesn&amp;#39;t come to a grinding halt!!
&amp;lt;/rant&amp;gt;&lt;/p&gt;
&lt;p&gt;The new input looks like this:&lt;/p&gt;
&lt;p&gt;{61898d4c-3a1b-4736-9a36-eb90a23322e0}|:|10/13/2008 11:59:58
PM|:|{74afebfe-9523-4977-b5f6-5154b6c91211}&lt;/p&gt;
&lt;p&gt;I went through the steps above, and tested the solution. &amp;nbsp;That&amp;#39;s it!&amp;nbsp; It works like a
champ now.&amp;nbsp; Thx u &lt;a href="http://devplanet.com/members/Chuck/default.aspx" target="_blank"&gt;Chuck&lt;/a&gt;!!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://twitter.com/davidjustice"&gt;Twitter: @DavidJustice&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://azurecoding.net/aggbug.aspx?PostID=20" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=ytJsOADvov0:9EqE2gluHK0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=ytJsOADvov0:9EqE2gluHK0:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=ytJsOADvov0:9EqE2gluHK0:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=ytJsOADvov0:9EqE2gluHK0:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=ytJsOADvov0:9EqE2gluHK0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=ytJsOADvov0:9EqE2gluHK0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=ytJsOADvov0:9EqE2gluHK0:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=ytJsOADvov0:9EqE2gluHK0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=ytJsOADvov0:9EqE2gluHK0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/GUID/default.aspx">GUID</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/SQL/default.aspx">SQL</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/SSIS/default.aspx">SSIS</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Unique+Identfier/default.aspx">Unique Identfier</category></item><item><title>MetaTable Expression Builder for Fetching Any Object Via Collection of Primary Keys</title><link>http://azurecoding.net/blogs/icbtw/archive/2008/11/04/metatable-expression-builder-for-fetching-any-object-via-collection-of-primary-keys.aspx</link><pubDate>Tue, 04 Nov 2008 07:53:00 GMT</pubDate><guid isPermaLink="false">6e97e1e3-dc93-4c0d-b73f-e698f7d56013:18</guid><dc:creator>David Justice</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://azurecoding.net/blogs/icbtw/rsscomments.aspx?PostID=18</wfw:commentRss><wfw:comment>http://azurecoding.net/blogs/icbtw/commentapi.aspx?PostID=18</wfw:comment><comments>http://azurecoding.net/blogs/icbtw/archive/2008/11/04/metatable-expression-builder-for-fetching-any-object-via-collection-of-primary-keys.aspx#comments</comments><description>&lt;div style="font-family:Courier New;font-size:10pt;color:black;background:white;"&gt;
&lt;p style="margin:0px;"&gt;Basically, I wanted to build a method that gets an object from a data context whatever the primary key may look like, and whatever type that object may be. &amp;nbsp;I wrote this code a little while ago when I was exploring the DynamicData libs. &amp;nbsp;I was checking out some of the code in the libs, and noticed a very slick way one of devs was building expressions to grab back a data item based on a single key ID. &amp;nbsp;I thought the idea of building up the expression completely ROCKED, but I wanted to expand it out to include composite primary keys. &amp;nbsp;Below is my implementation of the composite primary key object fetcher. &amp;nbsp;Hopefully, it will make your life a little easier.&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;(Needed to grab the MetaModel class)&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt; System.Web.DynamicData;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;(Create a new MetaModel for your Context or Contexts -- make sure they are only registered once!! &amp;nbsp;This can be an issue if you put this code in a static constructor, and you happen to have a generic class. &amp;nbsp;That would cause the code to get executed each time you specify a new generic argument for type construction (sry, I digress))&lt;/p&gt;
&lt;/div&gt;
&lt;div style="font-family:Courier New;font-size:10pt;color:black;background:white;"&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;Model = &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color:#2b91af;"&gt;MetaModel&lt;/span&gt;();&lt;/p&gt;
&lt;p style="margin:0px;"&gt;Model.RegisterContext(&lt;span style="color:blue;"&gt;typeof&lt;/span&gt;([&lt;span style="color:#2b91af;"&gt;Your Context Type&lt;/span&gt;]));&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;(Get your meta table based on the type from your registered context -- need the metadata about the table to figure out the keys)&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;div style="font-family:Courier New;font-size:10pt;color:black;background:white;"&gt;
&lt;p style="margin:0px;"&gt;&lt;span style="color:blue;"&gt;protected&lt;/span&gt; &lt;span style="color:blue;"&gt;static&lt;/span&gt; &lt;span style="color:#2b91af;"&gt;MetaTable&lt;/span&gt; GetMetaTable&amp;lt;T&amp;gt;()&lt;/p&gt;
&lt;p style="margin:0px;"&gt;{&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&lt;span style="color:blue;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return&lt;/span&gt; dataModelMetaModel.GetTable(&lt;span style="color:blue;"&gt;typeof&lt;/span&gt; (T));&lt;/p&gt;
&lt;p style="margin:0px;"&gt;}&lt;/p&gt;
&lt;/div&gt;
&lt;div style="font-family:Courier New;font-size:10pt;color:black;background:white;"&gt;
&lt;p style="margin:0px;"&gt;&lt;span style="color:#2b91af;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;(This is where the heavy lifting occurs. &amp;nbsp;I commented what is going on. &amp;nbsp;There is not much more to say. &amp;nbsp;Enjoy!)&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;div style="font-family:Courier New;font-size:10pt;color:black;background:white;"&gt;
&lt;/div&gt;
&lt;div style="font-family:Courier New;font-size:10pt;color:black;background:white;"&gt;
&lt;p style="margin:0px;"&gt;&lt;span style="color:blue;"&gt;private&lt;/span&gt; &lt;span style="color:blue;"&gt;static&lt;/span&gt; T FetchObject&amp;lt;T&amp;gt;(&lt;span style="color:#2b91af;"&gt;MetaTable&lt;/span&gt; metatable, &lt;span style="color:#2b91af;"&gt;IDictionary&lt;/span&gt;&amp;lt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;, &lt;span style="color:blue;"&gt;object&lt;/span&gt;&amp;gt; pks)&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;where&lt;/span&gt; T : &lt;span style="color:blue;"&gt;class&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;{&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#2b91af;"&gt;IQueryable&lt;/span&gt; query = metatable.GetQuery();&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:green;"&gt;//build linq expression tree for where clause&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#2b91af;"&gt;ParameterExpression&lt;/span&gt; entityparam = &lt;span style="color:#2b91af;"&gt;Expression&lt;/span&gt;.Parameter(metatable.EntityType, &lt;span style="color:#a31515;"&gt;&amp;quot;e&amp;quot;&lt;/span&gt;);&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#2b91af;"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color:#2b91af;"&gt;Expression&lt;/span&gt;&amp;gt; internalExpressons = &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color:#2b91af;"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color:#2b91af;"&gt;Expression&lt;/span&gt;&amp;gt;();&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#2b91af;"&gt;Expression&lt;/span&gt; equalexpression;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color:#2b91af;"&gt;MetaColumn&lt;/span&gt; member &lt;span style="color:blue;"&gt;in&lt;/span&gt; metatable.PrimaryKeyColumns)&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:green;"&gt;//convert primary key to proper type&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#2b91af;"&gt;PropertyInfo&lt;/span&gt; columnpropertyinfo = member.EntityTypeProperty;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#2b91af;"&gt;MemberExpression&lt;/span&gt; columnexpresson = &lt;span style="color:#2b91af;"&gt;Expression&lt;/span&gt;.MakeMemberAccess(entityparam, columnpropertyinfo);&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; internalExpressons.Add(&lt;span style="color:#2b91af;"&gt;Expression&lt;/span&gt;.Equal(columnexpresson, &lt;span style="color:#2b91af;"&gt;Expression&lt;/span&gt;.Constant(pks[member.Name])));&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:green;"&gt;// build up the primary key expressions&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;if&lt;/span&gt; (internalExpressons.Count &amp;gt; 1)&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; equalexpression = &lt;span style="color:#2b91af;"&gt;Expression&lt;/span&gt;.And(internalExpressons[0], internalExpressons[1]);&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;for&lt;/span&gt; (&lt;span style="color:blue;"&gt;int&lt;/span&gt; i = 2; i &amp;lt; internalExpressons.Count; i++)&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; equalexpression = &lt;span style="color:#2b91af;"&gt;Expression&lt;/span&gt;.And(equalexpression, internalExpressons);&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;else&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; equalexpression = internalExpressons[0];&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:green;"&gt;// Create the where clause&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#2b91af;"&gt;LambdaExpression&lt;/span&gt; wherelambda = &lt;span style="color:#2b91af;"&gt;Expression&lt;/span&gt;.Lambda(equalexpression, entityparam);&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#2b91af;"&gt;MethodCallExpression&lt;/span&gt; wherecall = &lt;span style="color:#2b91af;"&gt;Expression&lt;/span&gt;.Call(&lt;span style="color:blue;"&gt;typeof&lt;/span&gt; (&lt;span style="color:#2b91af;"&gt;Queryable&lt;/span&gt;), &lt;span style="color:#a31515;"&gt;&amp;quot;Where&amp;quot;&lt;/span&gt;, &lt;span style="color:blue;"&gt;new&lt;/span&gt;[] {metatable.EntityType},&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.Expression, wherelambda);&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; query = query.Provider.CreateQuery(wherecall);&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:green;"&gt;// Call FirstOrDefault to make sure the connection is closed when finished&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:green;"&gt;// saw some connections staying open when just grabbing the first object.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;return&lt;/span&gt; query.Cast&amp;lt;T&amp;gt;().FirstOrDefault();&lt;/p&gt;
&lt;p style="margin:0px;"&gt;}&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&lt;a href="http://twitter.com/davidjustice"&gt;Twitter: @DavidJustice&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://azurecoding.net/aggbug.aspx?PostID=18" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=-cTdMHGe5EY:yhcw11uXI2w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=-cTdMHGe5EY:yhcw11uXI2w:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=-cTdMHGe5EY:yhcw11uXI2w:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=-cTdMHGe5EY:yhcw11uXI2w:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=-cTdMHGe5EY:yhcw11uXI2w:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=-cTdMHGe5EY:yhcw11uXI2w:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=-cTdMHGe5EY:yhcw11uXI2w:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=-cTdMHGe5EY:yhcw11uXI2w:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=-cTdMHGe5EY:yhcw11uXI2w:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/MetaModel/default.aspx">MetaModel</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Expressions/default.aspx">Expressions</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Expression+Building/default.aspx">Expression Building</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Linq/default.aspx">Linq</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/C_2300_/default.aspx">C#</category></item><item><title>Windows Azure and _NOT_ SQLExpress</title><link>http://azurecoding.net/blogs/icbtw/archive/2008/11/02/windows-azure-and-not-sqlexpress.aspx</link><pubDate>Sun, 02 Nov 2008 10:37:00 GMT</pubDate><guid isPermaLink="false">6e97e1e3-dc93-4c0d-b73f-e698f7d56013:17</guid><dc:creator>David Justice</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://azurecoding.net/blogs/icbtw/rsscomments.aspx?PostID=17</wfw:commentRss><wfw:comment>http://azurecoding.net/blogs/icbtw/commentapi.aspx?PostID=17</wfw:comment><comments>http://azurecoding.net/blogs/icbtw/archive/2008/11/02/windows-azure-and-not-sqlexpress.aspx#comments</comments><description>&lt;p&gt;I&amp;#39;ve been very excited recently by the release of Windows Azure, and rest of the Microsoft suite of cloud based services. &amp;nbsp;I downloaded all of the sdk&amp;#39;s, signed up for all the invitation tokens I could, and began writing code. &amp;nbsp;The Visual Studio templates for Windows Azure projects makes getting your first Azure project up and running super simple. &amp;nbsp;I did run into one issues with the project templates setting up my first project.&lt;/p&gt;
&lt;p&gt;Basically, the DevelopmentStorage.exe.config for windows Azure expects you to have SQLExpress installed on your machine. &amp;nbsp;I know it probably says it in quite a few places in the documentation, but instructions and documentation are for after the first faliure ;). &amp;nbsp;I don&amp;#39;t have SQLExpress installed on my machine. &amp;nbsp;I run SQL2008 Dev... &amp;nbsp;Now, it would not be very tough to go out and download SQLExpress, but I don&amp;#39;t want to (a bit of laziness is good for all developers, without it your code would never be DRY). &amp;nbsp;So, I just went into the&amp;nbsp;DevelopmentStorage.exe.config, and editted the refs for SQLExpress, and just replaced it with localhost (I have an unnamed instance), and all was well in the world of Azure DB Objects. &amp;nbsp;You should be able to find your&amp;nbsp;DevelopmentStorage.exe.config at&amp;nbsp;C:\Program Files\Windows Azure SDK\v1.0\bin.&lt;/p&gt;
&lt;p&gt;I hope you have clear blue skys ahead of you!&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:bold;text-decoration:underline;"&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;span style="color:#ff0000;"&gt;UPDATE:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;I noticed that my development storage was not starting the table service for me. &amp;nbsp;I reflected out the developmentstorage.exe and found that I was not supplying a proper dbName in the configuration file. &amp;nbsp;I doctored up my DevelopmentStorage.exe.config configuration file to look like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;service name=&amp;quot;Table&amp;quot;&amp;nbsp;url=&amp;quot;http://127.0.0.1:10002/&amp;quot;&amp;nbsp;dbServer=&amp;quot;localhost&amp;quot; dbName=&amp;quot;developmentstoragedb&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://twitter.com/davidjustice"&gt;Twitter: @DavidJustice&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://azurecoding.net/aggbug.aspx?PostID=17" width="1" height="1"&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=wiiVTTjMY70:OSxDtOG_4aw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=wiiVTTjMY70:OSxDtOG_4aw:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=wiiVTTjMY70:OSxDtOG_4aw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=wiiVTTjMY70:OSxDtOG_4aw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=wiiVTTjMY70:OSxDtOG_4aw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=wiiVTTjMY70:OSxDtOG_4aw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=wiiVTTjMY70:OSxDtOG_4aw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?a=wiiVTTjMY70:OSxDtOG_4aw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/ICantBelieveThatWorked?i=wiiVTTjMY70:OSxDtOG_4aw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;</description><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Azure/default.aspx">Azure</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/SQLExpress/default.aspx">SQLExpress</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Windows+Azure/default.aspx">Windows Azure</category><category domain="http://azurecoding.net/blogs/icbtw/archive/tags/Cloud+Computing/default.aspx">Cloud Computing</category></item></channel></rss>

