Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Debug Entity Framework Code

Nuget to debug the SQL statements Entity Framework Core is executing.

Entity Framework has a convenient way to log the SQL statements it executes. Unfortunately this functionality is not available out-of-the-box for Entity Framework Core. Entity Framework Core Issue #6482 captures this need.

Usage

using DebugEFCore;

public class SampleContext : DbContext
{
  protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  {
    var debugLoggingEnabled = true;
    optionsBuilder.EnableLogging(debugLoggingEnabled);
  }
}

Sample Project

Installation

Follow the steps from the DebugEFCore Nuget Package.

Dependencies

License

MIT

About

Nuget to help Debug EF Core generated SQL statements

Resources

License

Packages

No packages published

Languages