Skip to content

8. How to enable profiling for EntityFramework?

teddymacn edited this page Apr 27, 2016 · 2 revisions
  1. Add reference to NanoProfiler.EF package

  2. Add the code below to your application_start event handler:

     protected void Application_Start(object sender, EventArgs e)
     {
         // initialize entity framework 6 profiling
         EFProfilingBootstrapper.Initialize();
    
         // ...
     }
    
  3. Use EntityFramework as normal.