This repository has been merged with the Gibraltar.Agent Repository and is now maintained there.
This agent adds Entity Framework-specific monitoring features. If you don't need
to modify the source code just download the latest Loupe Agent for Entity Framework.
It extends the Loupe Agent so you can
use any viewer for Loupe to visualize network information
To activate the agent it isn't enough to simply deploy it with your project, you need to make one call to register it with Entity Framework. The call can be made multiple times safely (and without causing a double registration). Once registered with Entity Framework it will automatically record information for every EF 6.0 context in the application domain.
//Register the Interceptor
Gibraltar.Agent.EntityFramework.LoupeCommandInterceptor.Register();
This extension works only with Entity Framework 6.0 and later because it relies on the new database command interception features built into EF 6.0.
It is compiled for .NET 4.0 but is compatible with both .NET 4.0 and .NET 4.5.
This project is designed for use with Visual Studio 2012 with NuGet package restore enabled. When you build it the first time it will retrieve dependencies from NuGet.
Feel free to branch this project and contribute a pull request to the development branch. If your changes are incorporated into the master version they'll be published out to NuGet for everyone to use!