Tuesday, January 22, 2008

System.Data.Linq.Table Add and Remove Method Name Changes

If you tested BETA releases of Visual Studio 2008 and the .Net 3.5 Framework you'll find that some minor changes were made for the final release.
In particular one issue I ran into this evening was testing and writing sample code that I found in the MSDN documentation that used the Add and Remove methods of the System.Data.Linq.Table class.
The Add method was changed to InsertOnSubmit and the Remove method was changed to DeleteOnSubmit.
While more wordy, the change was made to make them more explicitly describe their behavior.