The dotnet ef dbcontext scaffold
command does not print all expected logs
#26384
Labels
area-scaffolding
area-tools
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
regression
Servicing-approved
type-bug
Milestone
This is a regression from EF Core 5.
With .NET 5 / EF Core 5
.config/dotnet-tools.json
ef5scaffold.csproj
global.json
Running
dotnet ef dbcontext scaffold --verbose --no-onconfiguring "Server=sqlprosample.database.windows.net;Database=sqlprosample;User=sqlproro;Password=nh{Zd?*8ZU@Y}Bb#" Microsoft.EntityFrameworkCore.SqlServer
prints many verbose logs. This is the expected behaviour.With .NET 6 / EF Core 6
.config/dotnet-tools.json
ef6scaffold.csproj
global.json
Running the same command
dotnet ef dbcontext scaffold --verbose --no-onconfiguring "Server=sqlprosample.database.windows.net;Database=sqlprosample;User=sqlproro;Password=nh{Zd?*8ZU@Y}Bb#" Microsoft.EntityFrameworkCore.SqlServer
does not print verbose logs anymore. Here is the full output:All the Found default schema, Found table, Found column with table, Found primary key with name are not printed anymore at all.
Also, scaffolding on this particular database should produce warnings (see #25729 and #25748) but they are not printed at all, regardless of the
--verbose
option. It looks like the many different logging/diagnostics/reporter components at play during scaffolding are not properly hooked together.The text was updated successfully, but these errors were encountered: