Created
June 27, 2022 20:11
-
-
Save Robbware/4bf4e854cc1a570f1c40a2a00cb418d5 to your computer and use it in GitHub Desktop.
Creates a .NET Core migration, with a specific migration project and a specific startup project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param([string]$Name) | |
if([string]::IsNullOrEmpty($Name)) { | |
Write-Host "Fill in your migration name."; | |
return; | |
} | |
$MigrationProject = ""; | |
$StartupProject = ""; | |
dotnet ef migrations add $Name --startup-project $StartupProject --project $MigrationProject | |
Write-Host "Migration $Name created."; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment