EfGumshoe.Plugin
6.0.21
dotnet add package EfGumshoe.Plugin --version 6.0.21
NuGet\Install-Package EfGumshoe.Plugin -Version 6.0.21
<PackageReference Include="EfGumshoe.Plugin" Version="6.0.21" />
paket add EfGumshoe.Plugin --version 6.0.21
#r "nuget: EfGumshoe.Plugin, 6.0.21"
// Install EfGumshoe.Plugin as a Cake Addin
#addin nuget:?package=EfGumshoe.Plugin&version=6.0.21
// Install EfGumshoe.Plugin as a Cake Tool
#tool nuget:?package=EfGumshoe.Plugin&version=6.0.21
EF Gumshoe
EF Gumshoe is a Windows desktop app which provides an overview over the SQL queries Entity Framework Core generates.
This helps identifying issues like comparably slow queries, or N+1 errors more easily than with the logging output EF provides out of the box.
Requirements
- .NET 6.0 and up
- Windows 10 and up for the desktop application
Installation
Install Ef Gumshoe with NuGet:
Install-Package EfGumshoe.Extensions.AspCore
Or via the .NET Core command line interface:
dotnet add package EfGumshoe.Extensions.AspCore
Usage
Add EF Gumshoe to your dependencies:
builder.Services.AddEfGumshoe();
Then use it when setting up your DB:
builder.Services
.AddDbContext<MyDbContext>(
(provider, options) =>
options
.UseEfGumshoe(provider, builder.Environment.IsDevelopment())
);
SQL statements sent by the web app should then be sent to the desktop app.
❗ The second parameter for
UseEfGumshoe()
is abool
that prevents EF Gumshoe from running if it isfalse
.
It is highly recommended to not run EF Gumshoe in production, like in the example above.
Wiki
Downloads for the desktop app and more documentation can be found in the wiki.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.EntityFrameworkCore.Relational (>= 6.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on EfGumshoe.Plugin:
Package | Downloads |
---|---|
EfGumshoe.Extensions.AspCore
EF Gumshoe is a Windows desktop app which provides an overview over the SQL queries Entity Framework Core generates. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.0.21 | 1,159 | 3/19/2023 |