Skip to content
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

dotnet ef database update does NOT support all the common options despite documentation saying it does #4637

Open
OliverRC opened this issue Jan 30, 2024 · 0 comments
Milestone

Comments

@OliverRC
Copy link

If you try and run dotnet ef database update with the --json common options you get the following error:

Specify --help for a list of available options and commands.
Unrecognized option '--json'

This is despite the documentation making specific mention that it supports the common options:
https://learn.microsoft.com/en-us/ef/core/cli/dotnet#dotnet-ef-database-update

image

The DX is poor if commands support subsets of the common options.
Personally, it either supports ALL common options or must define its own subset list of options.

I understand the "json" flag may not really mean anything to databases update but then simply ignore it.

It makes scripting around the tool more difficult than it needs to be.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@ajcvickers ajcvickers added this to the Backlog milestone Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants