Sunday, December 02, 2007 #

“Add” extension method in Linq deprecated in VS 2008 RTM

Well, one of the "perks" of working in beta and switching to rtm is definitely the few surprises that come along. In VS 2008 Beta2 Linq entities had 'Add' method that allowed you to add an object to the current datacontext. Surprisingly, it is removed and renamed to 'InsertOnSubmit' on the RTM. It took me a while to figure that out, cause most of the stuff I had written previously was working fine. And I was so confident that my extention method had gone missing, that I started scouring through Reflector, instead of googling. Anyway, this info should help anyone, who's trying to hunt the add method. For disconnected updates however, attach method still exists.

posted @ Sunday, December 02, 2007 8:19 PM | Feedback (2)

Copyright © Bigyan Rajbhandari