How can I tell datacontext I've updated a record via StoreProcedure
- by Ldsenow
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.