Tuesday, December 11, 2007

LINQLong time ago I promised to show LINQ in a demo, instead of just showing slides. Finally it's online :-) So to show you how much easier it is to write code in C# 3.0 than it was in C# 2.0, I've created a small webcast (about 25 minutes).

In the webcast I show a few slides, but most of the time is used in Visual Studio 2008 writing code. In the webcast I create a small program in C# 2.0 and afterwards I convert it to C# 3.0.

I show both LINQ to Objects, LINQ to XML. LINQ to DataSets and LINQ to SQL. Of course there are much more in LINQ than I can show in 25 minutes :-) By the way - the webcast and the slides are in Danish.

12/11/2007 8:32:17 AM (Romance Standard Time, UTC+01:00)  #    Comments [3]  | 
 Monday, November 19, 2007

I've just installed Visual Studio 2008 RTM and opened the project I was working on in Visual Studio 2008 Beta 2 a few hours ago and what happens?
VS2008 cannot load my .dbml-file

Of course there are changes in the framework between beta 2 and RTM - but I hate changes in designer generated files. The same thing happened when I moved from beta 1 to beta 2 :-( I think I'll wait till tomorrow trying to figure out what it is Visual Studio 2008 is trying to tell me :-)
There is no Unicode byte order mark. Cannot switch to Unicode.

Update:
The fix was just to remove the encoding attibute in the XML document description:
<?xml version="1.0" encoding="utf-16"?>

11/19/2007 10:12:55 PM (Romance Standard Time, UTC+01:00)  #    Comments [29]  |