-
Today I needed to load in an XML file into memory for later use. At first I was going to use the XmlDocument library (old habits die hard), but later switched over to the XDocument library. Why, not because one is better (ok, so I think that XDocument is better, but not the point here), but because...
-
Today I was making some changes to the DimeCasts.Net site and I realized that I did not like the URL's that I was currently using as I did not feel they accuracy reflected the intent of the route. However, because Google has already linked many of the episodes on the site, I did not want to...
-
For the first time in a long time I needed to update values inside an XML document. I have done this type of action many times in the past and have always hated it. The syntax is clunky and the process is simply painful. So today when I realized I need to do this, let me just tell you I was...
-
Today as I was diving further into my Linq2Sql Odyssey I ran into a need to do grouping on data. Bud not just single column grouping, I needed to group by multiple columns from multiple tables. Because it took me a few minutes to get right, I thought I would share my experiences. Imagine...
-
I thought I would share a little nugget of greatness with RhinoMocks . Today I was in the process of mocking out a webservice call for an application I was working on. But the method I wanted to mock took a out parameter in its signature. Normally this is not an issue, but since this...
-
In my last post I talked about how you can share a single config file among multiple project in a solution. One of the feedback comments I got was how to have a single config file for multiple developers or even multiple environments. So, today I thought I would chat about the different ways...
-
Sharing configuration files between multiple projects in Visual Studio is a simple task, but it is not intuitive in how it is done. In fact, until recently I did not know how to do it via the IDE, I would always hand edit the .sln file to enable this feature (sad I know). Today I thought...
-
***** Disclaimer ****** I may be the last person to figure this out, but oh well. ***** End Disclaimer ****** Today as I was further exploring the coolness that is Linq to Sql I ran into a little situation. I was creating a query where I wanted to use the columns form multiple tables to build an...
-
Today while trying to setup a CC.Net server at my new client I ran into a little issue. I had been using the .86 Beta1 build of Nant (as it is the only build that works with .Net 3.5) and all was fine on my Windows XP box. However, when I moved everything up to the actual server I encountered...
-
This post is another in the recent string of How-to's. But it is just so hard to resist. .Net 3.5 has so many cool features, it is just fun to explore them all. Ok, so here is the issue we are going to solve today. We have a list of entities and we need to sort them. In this post I will show you...
-
In my continuing effort to become educated on the MVC framework, I stubbed my toe on something today. I setup a simple edit screen and I wanted to updated the data on that screen to the database. I built my edit form by using the Html helper methods (Html.TextBox to be exact), but I made a few mistakes...
-
Today I was trying to put together a simple NAnt build script for a 'play' project of mine. This build script is real simple, it only calls MSBuild right now. However, when I was running the script I kept getting the message 'error MSB4126: The specified solution configuration "Debug...
-
This is my first go at playing with Linq. So far it is pretty cool, but I wanted to share something because I found it painful. I wanted query a list and then cast a anonymous type to a static type. I was not able to find anything on the net to help me with this (could be i just did not look in the right...
-
Today I had a weird issue, I could not log into SQL Management studio because my default database had been deleted (it was no longer needed). Every time I would try to log in, I would get the following dialog. At first I was kind of stumped, I did not know what to do other then email the DBA to ask him...
-
So, you wanna know how good or bad your application really is? Setup your IDE to break on all thrown exceptions. This will really let you know how good or bad your application is. This is also great way to find a pesky unhandled exception. To tell your IDE to break on thrown exceptions...