Created
October 18, 2022 19:34
-
-
Save Guifgr/b05ced3ae94b805b923fae13d50a09f7 to your computer and use it in GitHub Desktop.
makefile 4 ef
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
add-migration-linux: | |
@read -p "Nome da migration (ex: TipoTabelaMotivo) : " table \ | |
&& dotnet ef --startup-project ../Sln.projetoBase migrations add $${table} | |
remove-migration-linux: | |
dotnet ef --startup-project ../Sln.projetoBase migrations remove | |
update-database: | |
@echo "Você revisou a migration antes de enviar?" | |
@read -p "[Enter para confimar || CTRL + C para cancelar]" reponse; | |
dotnet ef --startup-project ../Sln.projetoBase database update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment