One thing that I have noticed is that people tend to not be aware of the Aggregate function that exist for linq. If you learn how to use the Aggregate function it will be useful for you in many scenarios. One scenario where I have found it useful man…

The last couple of days I've been playing around with git and setup my own git server using first gitosis and then gitolite. When playing around I created a lot of different test repositories to make sure everything work. To stop repeating myself I c…

Ok, first of all you should never be in a situation where you need to split columns in a database if you ask me, that is, if you have done your job well. A sql database consists of tables and tables consists of columns so why join columns together an…

Isn't it boring to write mappers to map data from a db to objects? Wouldn't it be nice if someone wrote one that is simple to use and works in most cases? I guess so and maybe there are several out there, but I wrote one myself anyway. I know a lot o…

It could be hard to debug your windows services if you play by the book. If you do play by the book you need to install the windows service and then attach a debugger to the process to be able to debug the service, of course you might need to do that…

Ok, I have to admit that I'm sitting on a WebForms project that is using datasets and DataTable a lot as DataSource to GridView's for example. When using GridView's in asp.net it's pretty nice to have DataTable as DataSources since the sorting of dat…

If you read my previous post about how to create a NuGet package this is a follow up on that post. I will in this post, most example code, show you how to extend the Package Manager Console in Visual Studio with a NuGet package. More precisely I will…

I'm about to write my own blog, which will replace this one when it's done. When doing so there is no excuse to not do it as it should be done. So I'm using SpecFlow to define my features and WatiN to drive my browser tests. One thing I found was tha…

The background to the following post is this question on Stack Overflow and my old blog post about generic list to DataTable. The question on Stack Overflow is basically asking the opposite of what I wrote in my blog post, but doing the opposite is a…