linqtocache
linqtocache copied to clipboard
Add SqlDependency to a Linq2SQL IQueryable
The code in the sample seems to be somehow outdated. There way some renaming :-) QueryCachedOptions => CachedQueryOptions OnInvalidate => OnInvalidated NotificationEventargs => NotificationEventArgs (was just a Typo, I suppose)...
The tiniest little spelling correction :)
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.