-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
/cc @bricelam |
Possibly related to the design-time services changes... |
Note for triage: cofirmed this still repros with the latest daily build. Does look like it is due to service scoping changes, but haven't been able to pinpoint the issue. |
AndriySvyryd
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Oct 25, 2021
AndriySvyryd
added a commit
that referenced
this issue
Oct 25, 2021
FYI for those impacted by this issue: EF Core 6.0.1 is now available from NuGet. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
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: