Wooley's LINQ Wonderings

Insights and observations regarding LINQ

Visual Studio 2008 (Orcas) Changes from Beta 2 to RTM

I've just updated the ThinqLinq proof of concept site for the Visual Studio 2008 release that came out today. If you're following the sample application, or are looking for a sample VB 9 implementation of LINQ in a web site, check out the download at http://devauthority.com/files/13/jwooley/entry101097.aspx. In case you are interested, here are the changes that were necessary to move from Beta 2 to the RTM. (The first two items are repeats from my post earlier today).

  • Open the DBML file as XML and change the UTF encoding from 16 to 8. Otherwise the compiler will complain about the DBML file's format.
  • Replace the Add methods with InsertOnSubmit. Likewise, change Remove to DeleteOnSubmit. You may be able to do a global search and replace on this, but be careful not to make changes to any IList object implementations, only LINQ to SQL ones.
  • SyndicationFeed.Load removed the option to pass in a URI. Instead, I used SyndicationFeed.Load(New System.Xml.XmlTextReader(UrlString)).
  • The SyndicationFeed's Item PublishDate property is changed to the new DateTimeOffset type rather than the simpler DateTime. As a result, get the date from the PublishDate.Date property.
  • When projecting XML elements as part of a LINQ to SQL query, you no longer need to pre-fetch the results into an array. I'll make a separate post on this item.
  • That's all I've found so far. I've already updated both the ThinqLinq site and the samples for the upcoming LINQ in Action book. I'm sure I've missed something, but so far, the upgrade is relatively easy this time around. The IDE does appear to be running faster as well.

    Technorati tags: ,

    Crossposted from http://devauthority.com/blogs/jwooley/default.aspx
    Published Tuesday, November 20, 2007 1:53 AM by jwooley

    Comment Notification

    If you would like to receive an email when updates are made to this post, please register here

    Subscribe to this post's comments using RSS

    Comments

     

    Jon Kruger said:

    They also added a parameter to the OnValidate() partial methods that get generated by the LINQ to SQL designer, so now they look like this:

    partial OnValidate(System.Data.Linq.ChangeAction changeAction)

    {

    }

    November 20, 2007 6:29 PM
     

    Punit Ganshani said:

    One of my whitepaper on Orcas is also put on http://www.ganshani.com/publications

    December 18, 2007 8:27 PM

    Leave a Comment

    (required) 
    (optional)
    (required) 
    Submit