LINQ to SQL does not update when data has changed in database
        Posted  
        
            by aximili
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by aximili
        
        
        
        Published on 2010-04-19T02:28:55Z
        Indexed on 
            2010/04/19
            2:33 UTC
        
        
        Read the original article
        Hit count: 480
        
I have this problem where after a field (say Field3 in table MyTable) is updated on the database, MyTable.Field3 (in C#) is still returning the old value.
I suspect there is some caching...?
How do I force it to:
Read the value from the database?
OR
Update the value in the MyTable class?
Or is there anything I miss?
Thank you in advance.
© Stack Overflow or respective owner