linqtocache
linqtocache copied to clipboard
EntityFramework context not refreshed
When using EntityFramework, the iteration of the underlying Query give the expected result only on first call. It seems there is a need to refresh the EF context before iterating.
This bit of the docs seems to cover your issue, I think.