Skip to content

输出EF Core生成的SQL语句到控制台。A library outputing EFCore's SQL to the console.

License

Notifications You must be signed in to change notification settings

VictorTzeng/EFCore.Extension.Logger

Repository files navigation

Build Status

EFCore.Extension.Logger

输出EF Core生成的SQL语句到控制台。A library outputing EFCore's SQL to the console.

How to use

  1. Install the package from nuget:

    Install-Package EFCore.Extension.Logger -Version 1.0.0
    
  2. Override the method OnConfiguring in your DbContext class file:

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
    optionsBuilder.UseEFCoreLogger();
    base.OnConfiguring(optionsBuilder);
}

About

输出EF Core生成的SQL语句到控制台。A library outputing EFCore's SQL to the console.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages