Skip to content

Instantly share code, notes, and snippets.

@Guifgr
Created October 18, 2022 19:34
Show Gist options
  • Save Guifgr/b05ced3ae94b805b923fae13d50a09f7 to your computer and use it in GitHub Desktop.
Save Guifgr/b05ced3ae94b805b923fae13d50a09f7 to your computer and use it in GitHub Desktop.
makefile 4 ef
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