Click here to Skip to main content
15,902,889 members
Articles / Programming Languages / SQL

How to Attach object to a different data context

Rate me:
Please Sign up or sign in to vote.
4.20/5 (3 votes)
10 Feb 2010CPOL2 min read 37.7K   2  
For the last couple of days, working on my project for my studies I have struggled with this annoying issue regarding LINQ to SQL classes.When we update an entity within a DataContext, we can simple use something likecontext.Entity.Attach(updatedEntityInstance)The proplem is that...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
South Africa South Africa
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
This is a Organisation (No members)


Comments and Discussions