使用EF5时,如果我在数据数据中直接修改一条记录;那么通过EF5绑定到页面的数据将不能更新;
请问怎么清除缓存?
大其心,可容天下之物; 虚其心,可受天下之善;
可以尝试使用
Context.Refresh(RefreshMode.StoreWins, somethings);
具体的用法请参考如下的链接:
Please mark this as answer if it helps with this issue!