Tracing and Caching Provider Wrappers for Entity Framework is a sample which demonstrates how to implement
wrapping providers which add interesting functionality to an EF application.
Included are:
EFProviderWrapperToolkit - common toolkit for writing provider wrappers.
EFCachingProvider - provides caching of LINQ and ESQL query results
EFTracingProvider - enables tracing (logging) of SQL commands
Other projects:
AspNetCachingDemo - demonstrates using tracing and caching in ASP.NET application using Entity Data Source
ConfigOnlyInjection - explains injecting tracing behavior into an application by changing App.config and ssdl file
EFProviderWrapperDemo - couple of end-to-end demos of using tracing and caching providers.
EFCachingProvider.Tests - unit tests for in-memory cache implementation
EFVelocityCacheAdapter - implementation of cache using Microsoft Distributed Cache codename "Velocity" CTP3.
EFVelocityCacheDemo - application which uses velocity cache adapter
The sample works with Entity Framework 3.5SP1 and 4.0 Beta1.
For more information on this sample, check out
http://blogs.msdn.com/jkowalski/archive/tags/EFProviderWrappers/default.aspx.
DISCLAIMER As with any other sample, Microsoft is not offering any kind of official support for it, but I’m very interested in hearing about your experiences using this sample. Please use the contact form on
http://blogs.msdn.com/jkowalski/ to send your comments, bug reports, suggestions, etc.