<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://interactiveasp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'Utah Code Camp'</title><link>http://interactiveasp.net/search/SearchResults.aspx?a=1&amp;o=DateDescending&amp;tag=Utah+Code+Camp&amp;orTags=0</link><description>Search results matching tag 'Utah Code Camp'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008 (Build: 30417.1769)</generator><item><title>LINQ to Entities Example Queries</title><link>http://interactiveasp.net/blogs/natesstuff/archive/2008/11/02/linq-to-entities-example-queries.aspx</link><pubDate>Sun, 02 Nov 2008 23:06:00 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:128</guid><dc:creator>NathanZaugg</dc:creator><description>&lt;p&gt;&lt;img border="0" align="left" width="142" src="http://interactiveasp.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/natesstuff/coding_5F00_camper_5F00_3.jpg" alt="coding_camper" height="104" style="border-right: 0px; border-top: 0px; margin: 0px 10px 5px 0px; border-left: 0px; border-bottom: 0px" /&gt; Here are the examples I used during my LINQ to Entities presentation.&amp;nbsp; They show how to use the EntityClient, ObjectQuery, and LINQ to Entities queries.&amp;nbsp; All examples are built using a 1:1 mapping to the Adventure Works database that had been slightly modified.&amp;nbsp; The Object Services with Lazy Loading Example shows some how to debug these queries.&lt;/p&gt;
&lt;h3&gt;Entity Client Example&lt;/h3&gt;
&lt;blockquote&gt;
&lt;pre class="code"&gt;&lt;span style="color: green"&gt;// Entity Client &amp;amp; Entity SQL
&lt;/span&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;EntityConnection &lt;/span&gt;conn = &lt;br /&gt;       &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;EntityConnection&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"Name=AdventureWorksEntities"&lt;/span&gt;)) {
    conn.Open();
    &lt;span style="color: #2b91af"&gt;EntityCommand &lt;/span&gt;cmd = conn.CreateCommand();
    cmd.CommandText = &lt;span style="color: #a31515"&gt;"SELECT VALUE c FROM &lt;br /&gt;           AdventureWorksEntities.Customer AS &lt;br /&gt;            c WHERE c.State = @state"&lt;/span&gt;;
    cmd.Parameters.AddWithValue(&lt;span style="color: #a31515"&gt;"state"&lt;/span&gt;, &lt;span style="color: #a31515"&gt;"UT"&lt;/span&gt;);

    &lt;span style="color: #2b91af"&gt;DbDataReader &lt;/span&gt;rdr = cmd.ExecuteReader(&lt;br /&gt;          &lt;span style="color: #2b91af"&gt;CommandBehavior&lt;/span&gt;.SequentialAccess);
    &lt;span style="color: blue"&gt;while &lt;/span&gt;(rdr.Read()) {
        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: blue"&gt;string&lt;/span&gt;.Format(&lt;span style="color: #a31515"&gt;"Company Name: &lt;br /&gt;              {0}\tCompany City: {1}"&lt;/span&gt;, &lt;br /&gt;              rdr[&lt;span style="color: #a31515"&gt;"CompanyName"&lt;/span&gt;], rdr[&lt;span style="color: #a31515"&gt;"City"&lt;/span&gt;]));
    }
}&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;h3&gt;Object Services Query Example&lt;/h3&gt;
&lt;blockquote&gt;
&lt;pre class="code"&gt;&lt;span style="color: green"&gt;// Object Services &amp;amp; Entity SQL
&lt;/span&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;AdventureWorksEntities &lt;/span&gt;data = &lt;br /&gt;     &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;AdventureWorksEntities&lt;/span&gt;()) {
    &lt;span style="color: #2b91af"&gt;ObjectQuery&lt;/span&gt;&amp;lt;&lt;span style="color: #2b91af"&gt;Customer&lt;/span&gt;&amp;gt; custs = data.CreateQuery&amp;lt;&lt;span style="color: #2b91af"&gt;Customer&lt;/span&gt;&amp;gt;(
        &lt;span style="color: #a31515"&gt;"SELECT VALUE c FROM Customer AS c WHERE c.Address.City = @city"&lt;/span&gt;, 
        &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;ObjectParameter&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"city"&lt;/span&gt;, &lt;span style="color: #a31515"&gt;"Salt Lake City"&lt;/span&gt;));

    &lt;span style="color: blue"&gt;foreach &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Customer &lt;/span&gt;cust &lt;span style="color: blue"&gt;in &lt;/span&gt;custs) {
        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;"Company: " &lt;/span&gt;+ cust.CompanyName);
    }
}&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;h3&gt;Object Services Query with Eager Loading Example&lt;/h3&gt;
&lt;blockquote&gt;
&lt;pre class="code"&gt;&lt;span style="color: green"&gt;// Eager Loading with Object Services
&lt;/span&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;AdventureWorksEntities &lt;/span&gt;data = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;AdventureWorksEntities&lt;/span&gt;()) {
    &lt;span style="color: #2b91af"&gt;ObjectQuery&lt;/span&gt;&amp;lt;&lt;span style="color: #2b91af"&gt;Customer&lt;/span&gt;&amp;gt; custs = data.CreateQuery&amp;lt;&lt;span style="color: #2b91af"&gt;Customer&lt;/span&gt;&amp;gt;(
        &lt;span style="color: #a31515"&gt;"SELECT VALUE c FROM Customer AS c WHERE c.State = @state"&lt;/span&gt;,
        &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;ObjectParameter&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"state"&lt;/span&gt;, &lt;span style="color: #a31515"&gt;"UT"&lt;/span&gt;)).Include(&lt;span style="color: #a31515"&gt;"SalesOrderHeader"&lt;/span&gt;);


    &lt;span style="color: blue"&gt;foreach &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Customer &lt;/span&gt;cust &lt;span style="color: blue"&gt;in &lt;/span&gt;custs) {
        &lt;span style="color: #2b91af"&gt;SalesOrderHeader &lt;/span&gt;sales = cust.SalesOrderHeader.FirstOrDefault();
        &lt;span style="color: blue"&gt;string &lt;/span&gt;str = (sales == &lt;span style="color: blue"&gt;null&lt;/span&gt;) ? &lt;span style="color: #a31515"&gt;"none" &lt;/span&gt;: sales.OrderDate&lt;br /&gt;             .ToShortDateString();
        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(
            &lt;span style="color: blue"&gt;string&lt;/span&gt;.Format(&lt;span style="color: #a31515"&gt;"Company: {0}\tOrder: {1}"&lt;/span&gt;, &lt;br /&gt;                 cust.CompanyName, str));
    }
}&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;&lt;/blockquote&gt;
&lt;h3&gt;Object Services Query with Lazy Loading Example&lt;/h3&gt;
&lt;blockquote&gt;
&lt;pre class="code"&gt;&lt;span style="color: green"&gt;// Lazy Loading with Object Services
&lt;/span&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;AdventureWorksEntities &lt;/span&gt;data = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;AdventureWorksEntities&lt;/span&gt;()) {
    &lt;span style="color: #2b91af"&gt;ObjectQuery&lt;/span&gt;&amp;lt;&lt;span style="color: #2b91af"&gt;Customer&lt;/span&gt;&amp;gt; custs = data.CreateQuery&amp;lt;&lt;span style="color: #2b91af"&gt;Customer&lt;/span&gt;&amp;gt;(
        &lt;span style="color: #a31515"&gt;"SELECT VALUE c FROM Customer AS c WHERE c.State = @state"&lt;/span&gt;,
        &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;ObjectParameter&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"state"&lt;/span&gt;, &lt;span style="color: #a31515"&gt;"UT"&lt;/span&gt;));

    &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;"DEBUG: " &lt;/span&gt;+ custs.ToTraceString());

    &lt;span style="color: blue"&gt;foreach &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Customer &lt;/span&gt;cust &lt;span style="color: blue"&gt;in &lt;/span&gt;custs) {
        &lt;span style="color: blue"&gt;if &lt;/span&gt;(!cust.SalesOrderHeader.IsLoaded)
            cust.SalesOrderHeader.Load();

        &lt;span style="color: #2b91af"&gt;SalesOrderHeader &lt;/span&gt;sales = cust.SalesOrderHeader.FirstOrDefault();
        &lt;span style="color: blue"&gt;string &lt;/span&gt;str = (sales == &lt;span style="color: blue"&gt;null&lt;/span&gt;) ? &lt;span style="color: #a31515"&gt;"none" &lt;/span&gt;: sales.OrderDate&lt;br /&gt;               .ToShortDateString();
        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(
            &lt;span style="color: blue"&gt;string&lt;/span&gt;.Format(&lt;span style="color: #a31515"&gt;"Company: {0}\tOrder: {1}"&lt;/span&gt;, &lt;br /&gt;            cust.CompanyName, str));
    }
}&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;LINQ to Entities Query Example&lt;/h3&gt;
&lt;blockquote&gt;
&lt;pre class="code"&gt;&lt;span style="color: green"&gt;// LINQ to ENTIES (Lazy Loading)
&lt;/span&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;AdventureWorksEntities &lt;/span&gt;data = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;AdventureWorksEntities&lt;/span&gt;()) {

    &lt;span style="color: blue"&gt;var &lt;/span&gt;custquery = &lt;span style="color: blue"&gt;from &lt;/span&gt;d &lt;span style="color: blue"&gt;in &lt;/span&gt;data.Customer
                &lt;span style="color: blue"&gt;where &lt;/span&gt;d.State == &lt;span style="color: #a31515"&gt;"UT"
                &lt;/span&gt;&lt;span style="color: blue"&gt;select &lt;/span&gt;d;

    &lt;span style="color: blue"&gt;foreach &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;Customer &lt;/span&gt;cust &lt;span style="color: blue"&gt;in &lt;/span&gt;custquery) {
        &lt;span style="color: blue"&gt;if &lt;/span&gt;( !cust.SalesOrderHeader.IsLoaded )
            cust.SalesOrderHeader.Load();
        &lt;span style="color: #2b91af"&gt;SalesOrderHeader &lt;/span&gt;sales = cust.SalesOrderHeader&lt;br /&gt;                .FirstOrDefault();
        &lt;span style="color: blue"&gt;string &lt;/span&gt;str = (sales == &lt;span style="color: blue"&gt;null&lt;/span&gt;) ? &lt;span style="color: #a31515"&gt;"none" &lt;/span&gt;: sales.OrderDate&lt;br /&gt;               .ToShortDateString();
        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(
            &lt;span style="color: blue"&gt;string&lt;/span&gt;.Format(&lt;span style="color: #a31515"&gt;"Company: {0}\tOrder: {1}"&lt;/span&gt;, &lt;br /&gt;             cust.CompanyName, str));
    }
}&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The presentation slides are available &lt;a target="_blank" href="http://interactiveasp.net/media/p/182.aspx" class="null"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Fall 2008 Utah Code Camp Announcement</title><link>http://interactiveasp.net/blogs/natesstuff/archive/2008/10/07/fall-2008-utah-code-camp-announcement.aspx</link><pubDate>Tue, 07 Oct 2008 22:57:33 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:108</guid><dc:creator>NathanZaugg</dc:creator><description>&lt;p&gt;&lt;img style="border-right:0px;border-top:0px;margin:0px 10px 5px 0px;border-left:0px;border-bottom:0px;" height="104" alt="coding_camper" src="http://interactiveasp.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/natesstuff/coding_5F00_camper_5F00_3.jpg" width="142" align="left" border="0" /&gt; Another six months have come and gone and it&amp;#39;s time for another Utah Code Camp!&amp;nbsp; I can&amp;#39;t believe how quickly this sneaks up on me every time!&amp;nbsp; For those in the area Code Camp is a high quality, free training event!&amp;nbsp; The topics range greatly from Microsoft, Java, Ruby, XBOX &amp;amp; Wii Development, Agile, Project Management, etc..&amp;nbsp; These presentations are by developers for developers and allows you to catch up on the sea of new technology that continually floods us.&amp;nbsp; More on the Code Camp Manifesto can be found &lt;a href="http://blogs.msdn.com/trobbins/archive/2004/12/12/280181.aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Before I share the details I would appreciate any feedback on a good topic to present.&amp;nbsp; I haven&amp;#39;t replied with a topic yet and I&amp;#39;ll need to get one soon so I can get started on the presentation.&amp;nbsp; Previously I have presented on .NET 3.5 / VS 2008, WPF, and Silverlight 2.&amp;nbsp; A big topic in MSDN magazine these days seems to be parrallism, but that topic feels rather dry to me.&amp;nbsp; Other ideas I have had were LINQ in Depth, DSL Tools, F# (though I hope someone else does this one), or WPF for Newbs.&lt;/p&gt; &lt;h3&gt;Here are the specifics:&lt;/h3&gt; &lt;p&gt;When: &lt;strong&gt;Saturday November 1, 2008&lt;br /&gt;&lt;/strong&gt;Where: &lt;strong&gt;Neumont University, Building 2, 2nd Floor&lt;/strong&gt; (&lt;a href="http://maps.live.com/OneClickDirections.aspx?rtp=~pos.qrsgr05p6nw2__Neumont%20University%2c%20Building%202__e_&amp;amp;mkt=en-us&amp;amp;FORM=LLMP" target="_blank"&gt;directions&lt;/a&gt;)&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://interactiveasp.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/natesstuff/Neumont-Map_5F00_2.png" target="_blank"&gt;&lt;img style="border-right:0px;border-top:0px;border-left:0px;border-bottom:0px;" height="245" alt="Neumont Map" src="http://interactiveasp.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/natesstuff/Neumont-Map_5F00_thumb.png" width="504" border="0" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;We are also always looking for sponsors.&amp;nbsp; It takes a lot to put on this event and contributions help a lot!&amp;nbsp; For more information about sponsorship, please visit &lt;a href="http://www.utcodecamp.com"&gt;http://www.utcodecamp.com&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;h5&gt;Links:&lt;/h5&gt; &lt;ul&gt; &lt;li&gt;&lt;a title="http://utcodecamp.com/" href="http://utcodecamp.com/"&gt;http://utcodecamp.com/&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="http://blogs.msdn.com/trobbins/archive/2004/12/12/280181.aspx"&gt;http://blogs.msdn.com/trobbins/archive/2004/12/12/280181.aspx&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;</description></item><item><title>XAML Cheat Sheet</title><link>http://interactiveasp.net/blogs/natesstuff/archive/2008/05/28/xaml-cheat-sheet.aspx</link><pubDate>Thu, 29 May 2008 04:33:05 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:27</guid><dc:creator>NathanZaugg</dc:creator><description>&lt;p&gt;A few weeks ago I gave a presentation on Silverlight at the &lt;a href="http://www.utcodecamp.com" target="_blank"&gt;Utah Code Camp&lt;/a&gt;.&amp;nbsp; I was really impressed by a presentation I saw last time on Ruby and everyone really liked the cheat sheet that was provided.&amp;nbsp; For my presentation this year I created an XAML Cheat Sheet.&amp;nbsp; For those who are learning XAML it is a pretty good resource but it&amp;#39;s most helpful for me when I know how to do something but I can&amp;#39;t remember the syntax.&amp;nbsp; This is a work in progress so keep on checking back.&amp;nbsp; It can be downloaded in the Media section of this site or by clicking &lt;a href="http://interactiveasp.net/media/p/23/download.aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Please drop me a line if you think you have something useful to add or you want to thank me for the hard work it took to put this thing together!&lt;/p&gt; &lt;p&gt;Nathan Zaugg&lt;/p&gt;</description></item><item><title>Utah Code Camp :: Spring 2008 Announcement</title><link>http://interactiveasp.net/blogs/natesstuff/archive/2008/04/22/utah-code-camp-spring-2008-announcement.aspx</link><pubDate>Tue, 22 Apr 2008 19:07:00 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:4</guid><dc:creator>admin</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have been doing Code Camp for over a year now (that may not seem like a lot but this will be my 3rd time presenting there).&amp;nbsp; Code Camp is awesome!&amp;nbsp; It&amp;#39;s a full day of &lt;strong&gt;&lt;em&gt;free training&lt;/em&gt;&lt;/strong&gt; in a verity of topics that most developers find interesting.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Topics Include:&lt;/strong&gt; &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Silverlight 2.0 &lt;/li&gt;
&lt;li&gt;Building websites with the ASP.NET MVC framework &lt;/li&gt;
&lt;li&gt;C# 3.0 &lt;/li&gt;
&lt;li&gt;Writing Manageable Services in .NET &lt;/li&gt;
&lt;li&gt;Database Performance tuning&amp;nbsp; Part 1 &lt;/li&gt;
&lt;li&gt;IronRuby + C# = Awesomeness &lt;/li&gt;
&lt;li&gt;Game Development in XNA for the Xbox360 &lt;/li&gt;
&lt;li&gt;Introduction to Mac OS X programming using Cocoa and Objective C &lt;/li&gt;
&lt;li&gt;Developing For Windows Vista &lt;/li&gt;
&lt;li&gt;T-Sql Querying &lt;/li&gt;
&lt;li&gt;Why C# Namespaces are not the same as Java Packages &lt;/li&gt;
&lt;li&gt;An Introduction to CakePHP&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can visit &lt;a href="http://www.utcodecamp.com/"&gt;&lt;span style="color:#81a5f8;"&gt;http://www.utcodecamp.com&lt;/span&gt;&lt;/a&gt; for more information (Yes, I know I put the Microsoft technologies first -- I&amp;#39;m an unpaid unofficial self-proclaimed Microsoft Technologies Evangelist!).&amp;nbsp; Wither you are just starting out in your career or have been doing this stuff for years you will get something out of Code Camp!&amp;nbsp; It&amp;#39;s not one of those Microsoft &amp;quot;For developers&amp;quot; class sessions where it&amp;#39;s just a giant power point and you didn&amp;#39;t get any real substance!&amp;nbsp; In fact, that is part of the Code Camp Manifesto (&lt;a href="http://blogs.msdn.com/trobbins/archive/2004/12/12/280181.aspx" title="http://blogs.msdn.com/trobbins/archive/2004/12/12/280181.aspx"&gt;&lt;span style="color:#81a5f8;"&gt;http://blogs.msdn.com/trobbins/archive/2004/12/12/280181.aspx&lt;/span&gt;&lt;/a&gt;) &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Information:&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;Date: &lt;strong&gt;April 26, 2008 (This Saturday)&lt;br /&gt;&lt;/strong&gt;Time: &lt;strong&gt;9:00AM - 5:00PM&lt;/strong&gt;&lt;br /&gt;Please register here. &lt;/p&gt;
&lt;p&gt;I will be doing the Silverlight 2.0 presentation so please come!!&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;Nathan Zaugg&lt;/p&gt;</description></item></channel></rss>