Development Blog archive for November 2007

November 30 2007

LINQ For SQL: Changes since Beta 2

Posted 10:29 | by zhaph

So, Visual Studio 2008 is now in RTM, which also means that LINQ has moved out of Beta. Yay.

However, I've found some breaking changes between the Beta 2 and RTM bits:

  1. Table<t> no longer has a method Remove() - this has been renamed to DeleteOnSubmit(). This apparently is to "better convey that the updates are deferred until the call to DataContext.SubmitChanges()" (MSDN Forums)
  2. The XML declaration of the .DBML file has changed, in Beta 2 this was:
    <?xml version="1.0" encoding="utf-16"?>
    In the RTM this has changed to:
    <?xml version="1.0" encoding="utf-8"?>
    Curiously, this UTF-16 caused VS to complain about unicode support, and wouldn't open the design surface. Changing it to UTF-8 fixed the issue.

I'll post more as I find them.

November 02 2007

LINQ For SQL for Windows Forms Revisited

Posted 17:20 | by zhaph

Well, finally, we get some guidence on the DataSources for LINQ in Windows Forms applications.

This seems better than my hack of editing the generated partial class that I posted about in September (Playing with LINQ For SQL in a Windows Forms Application).