It's ok, I solved the problem.
I used different DataContext objects, and that's why it treated the object as new object, and couldnt recognize that it already exists.
So I have a problem with updating values in database using linq.
I mapped my database using linq to sql, and there are two tables which are linked to eachother by one to many relation. So in my code if I want to change the foreign key value in child table and SubmitChanges(), I get the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.