How-To Profile Entity Framework Core
Hooking up profiling to Entity Framework Core is easy to do:
- Install the MiniProfiler.EntityFrameworkCore NuGet package.
- In your
Startup.cs
, callAddEntityFramework()
:
public void ConfigureServices(IServiceCollection services)
{
services.AddMiniProfiler()
.AddEntityFramework();
}
Entity Framework Core is now configured for profiling.