I have updated EF5 to 6 and MiniProfiler.Ef to 2.0.3
I am having issues to run the application now. As per the suggestion by https://github.com/SamSaffron/MiniProfiler/pull/142 I have updated my Web.Config to access the MiniProfiler Provider for the EntityFramework.
But the MiniProfiler.EntityFramework doesn't have a method named EFProfiledSqlClientDbProviderServices
and I couldn't find a method which returns System.Data.Entity.Core.Common.DbProviderServices
Could anyone please help me to fix the issue to connect EntityFramework6 with MiniProfiler.Ef
Side note I am using StructureMap for depedency injection.
The EF6 nuget has been published. It is available here and can be installed using Install-Package MiniProfiler.EF6 -Pre
In order to use it you will need to also install MiniProfiler v3 (your question references the old repository).
To initialize, simply call the following in your application startup logic:
using StackExchange.Profiling.EntityFramework6;
...
protected void Application_Start()
{
MiniProfilerEF6.Initialize();
}
Be sure to call this before using EF in any way.