Entity framework data context not in sync with database?
So, here is the situation - I insert an item in the database calling the AddtoObject() and then call SaveChanges(). Then, I call a stored procedure to update the currently inserted record. Then, I call the Save changes() again. The database when I query it has the correct updated value, but the entity framework context does not have the updated values..the first time..whenever I refresh the page it gets the value..but the first time it never gets the updated values. So has anyone faced a similar issue anytime ? What am I doing wrong here ? The problem is that the EF does not know what your