EntityFramework.Docs icon indicating copy to clipboard operation
EntityFramework.Docs copied to clipboard

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

Open OliverRC opened this issue 1 year ago • 0 comments

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.

OliverRC avatar Jan 30 '24 14:01 OliverRC