-
Notifications
You must be signed in to change notification settings - Fork 0
Entity Framework Troubleshooting
WILSON DE OLIVEIRA JUNIOR edited this page Mar 5, 2020
·
1 revision
04/03/2020
Comandos de migration do Visual Studio
add-migration AddIdentityAndCategory
update-database
drop-database
remove-migrationPara os commando de Entity Framework funcionarem na linha de comando do dotnet pode ser que seja necessário o seguinte comando:
dotnet tool install --global dotnet-efComandos de migrations do Vistual Studio Code
dotnet ef migrations add AddIdentityAndCategory
dotnet ef database update
dotnet ef database drop
dotnet ef migrations removeCaso tenha problemas no dotnet ef (Entity Framework Core) acrescente as seguintes bibliotecas a seu projeto:
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet add package Microsoft.EntityFrameworkCore.Tools
dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCoreLinks uteis: