efcore
efcore copied to clipboard
Tools: Add -WhatIf parameter to Update-Database
This would show the migrations that would be applied to the database.
This functionality is also related to #577.
Maybe --dry-run
? (see here)
-WhatIf
is a first-class concept in PowerShell. We could consider using --dry-run
in the DNX (and Console) commands, but I think there is more value in using a common language between the different interfaces.
Ah, okay, I didn't know about that. It's a bit of an odd name. :smile:
I think the DNX commands use lower or possibly camelCase, so I guess it'll be --whatif
, --what-if
, or --whatIf
.
+1 this would be so useful. Also agree with using the -WhatIf (even if in lowercase) as its familiar from PowerShell.
bicep also uses what-if
as the syntax for this
Hello, any updates?
No updates. Today you can use Get-Migration to see which migrations are pending and Script-Migration to see the SQL they'll generate.