﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>I Love C#.NET</title>
    <description>For C# Enthusiasts!</description>
    <link>http://ilovecsharp.net/Home/tabid/687/BlogId/1/Default.aspx</link>
    <language>en-US</language>
    <managingEditor>jasonk@ingensystems.com</managingEditor>
    <webMaster>jasonk@ingensystems.com</webMaster>
    <pubDate>Wed, 08 Sep 2010 07:06:00 GMT</pubDate>
    <lastBuildDate>Wed, 08 Sep 2010 07:06:00 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.4.0.39853</generator>
    <item>
      <title>New LINQ Discovery</title>
      <description>&lt;p&gt;In developing the NukePress blog, I've been using LINQ to SQL on a SQL 2005 database.  Recently, I had an issue with a module that would run perfectly fine locally, but not on a client's.&lt;/p&gt;
&lt;p&gt;On a client who was using SQL 2000, they would get the following error:&lt;/p&gt;
&lt;blockquote style="MARGIN-RIGHT: 0px" dir="ltr"&gt;
&lt;p&gt;&lt;font color="#ff0000"&gt;Incorrect syntax near 'MAX'&lt;/font&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The offending line of code was:&lt;/p&gt;
&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p style="MARGIN-RIGHT: 0px" dir="ltr"&gt;var &lt;/p&gt;
&lt;p&gt;Description is of type ntext in the database.  The SQL That is created for this field was &lt;/p&gt;
&lt;blockquote style="MARGIN-RIGHT: 0px" dir="ltr"&gt;
&lt;p&gt;nvarchar(MAX)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is an odd outcome, so I recreated the database on SQL Server 2000, recreated the relevant dbml file by dragging &amp; dropping from the new SQL 2000 database and ran it.&lt;/p&gt;
&lt;p&gt;No dice.  The odd thing is that there was no reference to SQL 2005 specific data types (nvarchar(MAX) for example).  The data source was strictly SQL 2000, and I could find no way to specify to LINQ to create SQL compatible with SQL 2000.  May be my keen Googling ability was off today, but I could find nothing.&lt;/p&gt;
&lt;p&gt;The answer came with simply removing the ToString() method from Description.  It was left over from an obsolete approach, but it is strange that LINQ acted in this way.&lt;/p&gt;
&lt;p&gt;Makes me wonder whether I should migrate to Entity Framework.  Not much of a stretch and it helps that EF is the apparent future.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;cmts = (&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;from&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; cmt &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ctx.Comments&lt;br /&gt;
&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    where&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; cmt.ModuleID == selectedModuleID &amp;&amp;&lt;br /&gt;
&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;cmt.Post.PublishDate != &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;&amp;&lt;br /&gt;
&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;((cmt.Post.IsPublished == &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;&amp; cmt.Post.PublishDate &lt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DateTime&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Now)) &lt;br /&gt;
&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;/font&gt;&lt;/font&gt;select&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;br /&gt;
&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;/font&gt;&lt;/font&gt;{&lt;br /&gt;
&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;CommentID = cmt.CommentID,&lt;br /&gt;
&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;UserName = cmt.SubmitterName,&lt;br /&gt;
&lt;strong&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;Description = cmt.Description.ToString(),&lt;/strong&gt;&lt;br /&gt;
&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;PostID = cmt.PostID,&lt;br /&gt;
&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;/font&gt;&lt;/font&gt;                    &lt;/font&gt;&lt;/font&gt;PostTitle = cmt.Post.Title,&lt;br /&gt;
&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;/font&gt;&lt;/font&gt;                    &lt;/font&gt;&lt;/font&gt;ISApproved = cmt.IsApproved&lt;br /&gt;
&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;                    &lt;/font&gt;&lt;/font&gt;});&lt;/font&gt;</description>
      <link>http://ilovecsharp.net/Home/tabid/687/EntryID/9/Default.aspx</link>
      <author>jasonk@ingensystems.com</author>
      <comments>http://ilovecsharp.net/Home/tabid/687/EntryID/9/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://ilovecsharp.net/Default.aspx?tabid=687&amp;EntryID=9</guid>
      <pubDate>Fri, 17 Jul 2009 02:01:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://ilovecsharp.net/DesktopModules/Blog/Trackback.aspx?id=9</trackback:ping>
    </item>
    <item>
      <title>New Video on DotNetNuke Cambrian Skinning</title>
      <description>I just finished a new video on that is being highlighted on &lt;a href="http://ilovecsharp.netjavascript:void(0);/*1217305556493*/"&gt;NukeCast.NET&lt;/a&gt;.  The video, titled &lt;a href="http://www.ingensystems.com/LinkClick.aspx?link=122&amp;tabid=36"&gt;"Cambrian" First Look - Skinning Enhancements&lt;/a&gt; focuses on the new skinning features of Cambrian.  It will be the first of a multi-part series on Cambrian.&lt;br /&gt;
&lt;br /&gt;
Also, in the next couple of weeks, we're putting out several videos on .NET 3.5 SP1 features such as Silverlight Deep Zoom and Dynamic Data.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.nukecast.net" target="_blank"&gt;&lt;img height="126" border="0" width="149" src="http://www.nukecast.net/Portals/0/Images/NukeCastLogo.jpg" alt="" /&gt;&lt;/a&gt;     &lt;strong&gt;and   &lt;/strong&gt;&lt;a target="_blank" href="http://www.ingensystems.com"&gt;&lt;img hspace="10" height="46" border="0" align="baseline" width="217" vspace="10" src="http://www.ilovecsharp.net/Portals/39/IngenSystemsLogo.gif" alt="" /&gt;&lt;/a&gt;</description>
      <link>http://ilovecsharp.net/Home/tabid/687/EntryID/8/Default.aspx</link>
      <author>jasonk@ingensystems.com</author>
      <comments>http://ilovecsharp.net/Home/tabid/687/EntryID/8/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://ilovecsharp.net/Default.aspx?tabid=687&amp;EntryID=8</guid>
      <pubDate>Tue, 29 Jul 2008 04:23:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://ilovecsharp.net/DesktopModules/Blog/Trackback.aspx?id=8</trackback:ping>
    </item>
    <item>
      <title>Oh Twitter, where art thou?</title>
      <description>I admit when I'm the last one to the boat.  I recently started exploring some social networking tools.  For the longest time, I avoided them simply because I did not see the value for me individually or the opportunity for my business.  Early on, they seemed like gimicks that would not likely last.  (man, I sound old!)&lt;br /&gt;
&lt;br /&gt;
When several friends and colleagues started promoting their &lt;a target="_blank" href="http://www.LinkedIn.com"&gt;LinkedIn&lt;/a&gt; and &lt;a href="http://www.twitter.com"&gt;Twitter&lt;/a&gt; accounts, I decided to look into it again. Twitter has been fun, but it raised some questions in my mind.  Thus the purpose for this blog post.&lt;br /&gt;
&lt;br /&gt;
&lt;img height="150" alt="" hspace="10" width="200" align="left" vspace="10" border="0" src="/Portals/39/Images/whale.png" /&gt;&lt;br /&gt;
&lt;strong&gt;Unavailable&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Since I've been using Twitter (let's say 2 months), it has been unavailable easily a dozen times.  The site has obviously come crashing head on into growing pains.  So where does the problem lie?  Scalability with the servers, software architecture, limitations with the underlying programming language?  I prefer to look at it from a different approach: resource utilization.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There were some new followers to my Twitter account, and when I reviewed some, I found something that made no sense.&lt;br /&gt;
&lt;br /&gt;
So, there's obviously some value to ringernation to have 100K follows, but regardless of the value, he must be sucking resources when he reads those twitters. In the law of diminishing returns, once you get to this level, what quality of networking is there?  If it is simply a way to promote yourself or your web site (as ringertnation has done), then IMHO, it devalues the social tool we're using.&lt;br /&gt;
&lt;br /&gt;
So what would I say to Twitter?  &lt;br /&gt;
&lt;ol&gt;
    &lt;li&gt;Put a cap on the number of followings&lt;br /&gt;
    &lt;/li&gt;
    &lt;li&gt;When prompted for to read twitters, pull up to a fixed number of posts (say 50 or 100) &lt;/li&gt;
    &lt;li&gt;Charge a premium to increase limits above - help pay for some infrastructure and would put an end to abuse.&lt;br /&gt;
    &lt;/li&gt;
&lt;/ol&gt;
I would post this on Twitter, but...  you guessed it!</description>
      <link>http://ilovecsharp.net/Home/tabid/687/EntryID/7/Default.aspx</link>
      <author>jasonk@ingensystems.com</author>
      <comments>http://ilovecsharp.net/Home/tabid/687/EntryID/7/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://ilovecsharp.net/Default.aspx?tabid=687&amp;EntryID=7</guid>
      <pubDate>Thu, 19 Jun 2008 13:56:00 GMT</pubDate>
      <slash:comments>2</slash:comments>
      <trackback:ping>http://ilovecsharp.net/DesktopModules/Blog/Trackback.aspx?id=7</trackback:ping>
    </item>
    <item>
      <title>See My Presentation on Silverlight Deep Zoom and DotNetNuke</title>
      <description>I'll be presenting at the next Dallas DotNetNuke Users Group on Deep Zoom, Microsoft's new feature in Silverlight 2 that allows for interactive navigation and zooming on collections of extremely high definition images.  We'll go over how to add a Silverlight module to DNN and how to create a collection of images in Expression Blend that users can interact with on the web.  &lt;br /&gt;
&lt;blockquote&gt;Thursday, June 19, 2008 &lt;br /&gt;
6:30 - 8:30 PM&lt;br /&gt;
Microsoft Building, Irving TX&lt;br /&gt;
&lt;/blockquote&gt; &lt;br /&gt;
For more and to RSVP, sign up on the &lt;a href="http://dallas.dnnug.net" target="_blank"&gt;Dallas DNN Users Group website&lt;/a&gt;.</description>
      <link>http://ilovecsharp.net/Home/tabid/687/EntryID/5/Default.aspx</link>
      <author>jasonk@ingensystems.com</author>
      <comments>http://ilovecsharp.net/Home/tabid/687/EntryID/5/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://ilovecsharp.net/Default.aspx?tabid=687&amp;EntryID=5</guid>
      <pubDate>Tue, 03 Jun 2008 18:06:00 GMT</pubDate>
      <slash:comments>2</slash:comments>
      <trackback:ping>http://ilovecsharp.net/DesktopModules/Blog/Trackback.aspx?id=5</trackback:ping>
    </item>
    <item>
      <title>Free DotNetNuke Training This Week - Standards Compliant Menus with Telerik Controls in DNN</title>
      <description>Catch some free instructor led training this Friday on Telerik's Radmenu, TabStrip, and PanelBar in DotNetNuke. Will Ballard of &lt;a target="_blank" href="http://www.ingensystems.com"&gt;Ingen Systems&lt;/a&gt; will be presenting in an hour long webinar on how to leverage Telerik's controls to create standards compliant valid XHTML pages, improving search engine rankings, less complex code, and faster page loads.&lt;br /&gt;
&lt;br /&gt;
This session is one of a weekly series of free training courses sponsored by Ingen Systems.  RSVPs are required so visit Ingen's  &lt;a target="_blank" href="http://www.ingensystems.com/Training/DotNetNukeTraining/FreeOnlineWebcasts/tabid/90/Default.aspx"&gt;free weekly training&lt;/a&gt; page to sign up for this session and view upcoming sessions.</description>
      <link>http://ilovecsharp.net/Home/tabid/687/EntryID/4/Default.aspx</link>
      <author>jasonk@ingensystems.com</author>
      <comments>http://ilovecsharp.net/Home/tabid/687/EntryID/4/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://ilovecsharp.net/Default.aspx?tabid=687&amp;EntryID=4</guid>
      <pubDate>Tue, 03 Jun 2008 17:51:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://ilovecsharp.net/DesktopModules/Blog/Trackback.aspx?id=4</trackback:ping>
    </item>
    <item>
      <title>Compatibility Challenges with Silverlight 2 and Visual Studio SP1 Beta</title>
      <description>Recently, I've been digging into Silverlight 2's Deep Zoom technology which is a part of the upcoming release of .NET 3.5 SP1. have been having fun learning how to bounce between the rich XAML UI tools in Expression Blend and the ever functional Visual Studio 2008.&lt;br /&gt;
&lt;br /&gt;
For months now, I've been working with ASP.NET Dynamic Data, which is also a part of the .NET 3.5 SP1 release.  Recently, I upgraded Visual Studio 2008 with the SP1 Beta, which was required to take advantage of the new Wizard in the latest build of Dynamic Data (I'll blog about this in a later post).  The upgrade went great and the wizards were allowed to roam freely across the plentiful app domains of my laptop.  (a little poetical liberty here!).&lt;br /&gt;
&lt;br /&gt;
It was only when I delved back into Deep Zoom that I realized that there were some breaking changes here.  The short story, after blood, sweat, and some serious Googling, is that the VS 2008 SP1 install breaks some of the key components for Silverlight 2 and Deep Zoom.  (The ones that I noticed were that VS's Intellisense had no knowledge of the root tags in XAML application  and there was no option for Design when the XAML file was opened.)&lt;br /&gt;
&lt;br /&gt;
The Silverlight team is rolling out Silverlight Tools Beta 2, which is fully compatible with VS 2008 SP1 Beta and is scheduled to be release within a few weeks.  &lt;a href="http://weblogs.asp.net/bradleyb/archive/2008/05/12/error-installing-visual-studio-2008-sp1-beta-and-silverlight-tools-beta-1.aspx" target="_blank"&gt;More here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <link>http://ilovecsharp.net/Home/tabid/687/EntryID/3/Default.aspx</link>
      <author>jasonk@ingensystems.com</author>
      <comments>http://ilovecsharp.net/Home/tabid/687/EntryID/3/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://ilovecsharp.net/Default.aspx?tabid=687&amp;EntryID=3</guid>
      <pubDate>Tue, 03 Jun 2008 17:34:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://ilovecsharp.net/DesktopModules/Blog/Trackback.aspx?id=3</trackback:ping>
    </item>
    <item>
      <title>Can't Attend Tech·Ed?  Watch it Online!</title>
      <description>As quoted from the Tech·Ed site itself, "Tech·Ed Online offers a live simulcast of the Keynote address, top Breakout Session recordings, on-site "Tech·Talks" video interviews with subject matter experts, and much more". &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.microsoft.com/techedonline/default.aspx" target="_blank"&gt;Go to Tech·Ed Online&lt;/a&gt;</description>
      <link>http://ilovecsharp.net/Home/tabid/687/EntryID/6/Default.aspx</link>
      <author>jasonk@ingensystems.com</author>
      <comments>http://ilovecsharp.net/Home/tabid/687/EntryID/6/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://ilovecsharp.net/Default.aspx?tabid=687&amp;EntryID=6</guid>
      <pubDate>Sun, 01 Jun 2008 05:46:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://ilovecsharp.net/DesktopModules/Blog/Trackback.aspx?id=6</trackback:ping>
    </item>
    <item>
      <title>Free Weekly DotNetNuke Training Webcasts</title>
      <description>There are many common questions or areas of interest that we hear in the DNN community.&amp;  Will Ballard and I have started a weekly teaching series to address some of these.&amp;  It's also a great sounding board for some of the cool things that we've learned in DNN.&lt;br /&gt;
&lt;br /&gt;
Each Friday at 2pm (central time), we will have a live web cast, running +- 1 hour.&amp;  RSVPs are required, as space is limited.&amp;  &lt;br /&gt;
&lt;br /&gt;
&lt;a target="_blank" href="http://www.ingensystems.com/Training/DotNetNukeTraining/FreeOnlineWebcasts/tabid/90/Default.aspx"&gt;Sign up for a session &lt;/a&gt;or &lt;a target="_blank" href="http://ingensystems.com/Training/DotNetNukeTraining/FreeOnlineWebcasts/WebcastArchive/tabid/112/Default.aspx"&gt;view previous sessions.&lt;/a&gt;  All free!&lt;br /&gt;
&lt;br /&gt;
Give it a try and give us your feedback.</description>
      <link>http://ilovecsharp.net/Home/tabid/687/EntryID/2/Default.aspx</link>
      <author>jasonk@ingensystems.com</author>
      <comments>http://ilovecsharp.net/Home/tabid/687/EntryID/2/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://ilovecsharp.net/Default.aspx?tabid=687&amp;EntryID=2</guid>
      <pubDate>Tue, 27 May 2008 20:22:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://ilovecsharp.net/DesktopModules/Blog/Trackback.aspx?id=2</trackback:ping>
    </item>
    <item>
      <title>Welcome to I Love C#.NET</title>
      <description>This site has been a long time in the making.  &lt;br /&gt;
&lt;br /&gt;
I originally purchased the domain name immediately after I started reading my first book on C#:&lt;br /&gt;
&lt;img width="121" height="121" border="0" src="/Portals/39/csharp.jpg" alt="csharp.jpg" /&gt;&lt;br /&gt;
&lt;br /&gt;
It did seem much easier than C++ and had many of the best features of Java. Though I had learned VB and some VB.NET, I preferred using a language that I considered cleaner, rmore efficient view of my code (yes, my personal opinion here, but hey, this is my blog  :) ).&lt;br /&gt;
&lt;br /&gt;
More to come.</description>
      <link>http://ilovecsharp.net/Home/tabid/687/EntryID/1/Default.aspx</link>
      <author>jasonk@ingensystems.com</author>
      <comments>http://ilovecsharp.net/Home/tabid/687/EntryID/1/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://ilovecsharp.net/Default.aspx?tabid=687&amp;EntryID=1</guid>
      <pubDate>Tue, 27 May 2008 20:20:00 GMT</pubDate>
      <slash:comments>2</slash:comments>
      <trackback:ping>http://ilovecsharp.net/DesktopModules/Blog/Trackback.aspx?id=1</trackback:ping>
    </item>
  </channel>
</rss>