I start to play with .Net framework 3.5 RTM. When i build my project which is developed with .net framework 3.5 beta 2 , i got some weird linq errors. DataContext's add and remove methods causes these errors. These methods are renamed because they are confusing or misleading for many users. In linq model, until you call dataContext's SubmitChanges method nothing will removed or added even you previously mention it. Here is list of the changes :
|
Previous Method
(VS Beta1 and VS Beta2)
|
Renamed Method
(VS 2008 RTM)
|
|
Add()
|
InsertOnSubmit()
|
|
AddAll()
|
InsertAllOnSubmit()
|
|
Remove()
|
DeleteOnSubmit()
|
|
RemoveAll()
|
DeleteAllOnSubmit()
|
For other changes, please read Dinesh Kulkarni's post.