Entity Framework: Entity is cached when update and reselecting it in a stored procedure using a function import
问题 I'm using EF4 with Visual Studio 2010 and SQL Server 2008 R2. I am selecting an entity. After that I call a stored procedure which updates that entity en reselects it from the database. When I catch the result of the stored procedure in code, I see that the old (previously selected) properties. Obviously I'm looking at the cached entity value. Is there a way to signal EF that my entity was updated? Or a magic property of some sort? My database table (and entity) look something like this: