How can I tell datacontext I've updated a record via StoreProcedure

Posted by Ldsenow on Stack Overflow See other posts from Stack Overflow or by Ldsenow
Published on 2009-04-30T06:25:06Z Indexed on 2010/03/18 15:01 UTC
Read the original article Hit count: 385

Filed under:
|

Hi Geeks,

I've a stroe procedure to update a record and after running it I use LinqToSql to delete the record. I know it is weird but I just want to test how smart the datacontext it is and understand how it works.

Since the datacontext caches the results so any change via it can be recorded but now I use a store procedure to update something, it would not know. So when I try to delete it, an exception comes out "Row not found or changed".

How I can tell the datacontext what I have updated? If I can do so the problem will sovle.

© Stack Overflow or respective owner

Related posts about datacontext

Related posts about linq-to-sql