January, 2010

While some cases may start of as complex, they sometimes turn out to be caused by something not that complex. As the case always is once you have the solution. So I thought I would share some of the things that I've come across, and hopefully tha

I’ve been trying to get my head around Extension methods. And I finally got it.
Imagine for example the following scenario. You have an assembly created by someone else.
This assembly contains a class called Products, this class has a field for...

I thought I’d give an example on how to use the ObjectDataSource in a webpage.
A typical example could be listing states etc. This is fairly static data so it may be unnecessary to query a database for each request.
However, in this example we’ll...

Today I’ll give you an example on how easy it is to create XML using LINQ to XML in conjunction with LINQ to SQL.
I will use the data and the classes defined in my last post:
"How to use LINQ to SQL without using the designer generated classes...

Sometimes people wonder if it is possible to use LINQ to SQL without having to use the designer and the automatically
generated .dbml files and classes. The short answer is yes, and it is not even very hard to do.
In the end it may be worth using...