Carlos Femmer's Blog

Carlos Femmer lives in Lafayette, LA and builds a few solutions for JCLS and Agency Virtual Tours

How to upgrade LINQ Beta 2 to LINQ Release (VS 2008)

November 22, 2007 14:07 by carlos

I recently upgraded an application that uses LINQ and had to make some modifications.  If you change the following methods, LINQ to SQL .dbml and a Web.Config file then you should be in good shape. 

(1) 

There were four methods that have been renamed ( Add(), AddAll(),   Remove() and RemoveAll() ).

Original Beta2 LINQ Method

New LINQ Method

Add()

InsertOnSubmit()

AddAll()

InsertAllOnSubmit()

Remove()

DeleteOnSubmit()

RemoveAll()

DeleteAllOnSubmit()

 

(2)

Change the encoding in the .dbml file

<?xml version="1.0" encoding="utf-16"?>

to

<?xml version="1.0" encoding="utf-8"?>

 

(3)

Change the assembly in the web.config file

 

<add assembly="System.Data.DataSetExtensions,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089"/>

to

<add assembly="System.Data.DataSetExtensions,
Version=3.5.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089"/>

Cheers,

Carlos