Entity Framework Deferred Query Library
Entity Framework Deferred Query library allow you to defer immediate query execution from a LINQ method, like First or Count, to allow others third party libraries to use their features like caching.
Why using Deferred Query with Entity Framework?
- Allow other third party libraries to use LINQ immediate method
Google – Related Searches
Stack Overflow – Related Questions
|// using Z.EntityFramework.Plus; // Don't forget to include this.|
|var ctx = new EntitiesContext();|
|// The count is deferred and cached.|
|var count = ctx.Customers.DeferredCount().FromCache();|