Link do evento: https://talents.sharerh.com/avanade-pcdev-programa
Links utilizados para a contrução da API
https://www.markdownguide.org/extended-syntax/
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
https://docs.microsoft.com/en-us/aspnet/core/web-api/action-return-types?view=aspnetcore-6.0
https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/?tabs=dotnet-core-cli
https://docs.microsoft.com/en-us/ef/core/modeling/
https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-6.0&tabs=linux
Para criar o banco de dados usando o Docker no WSL2
docker run --name sqlserver --hostname sqlserver -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=yourStrong@Password" -e MSSQL_PID=Developer -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-CU16-GDR1-ubuntu-20.04
Para criar o banco de dados utilizando o Migrations
dotnet ef migrations add InitDatabase --project Avanade.Academia.PcD.Infra.Database -s Avanade.Academia.PcD.Api -c Avanade.Academia.PcD.Infra.Database.ProjetoContext --verbose
Para efetivar a alteração no banco de dados
dotnet ef database update InitDatabase --project Avanade.Academia.PcD.Infra.Database -s Avanade.Academia.PcD.Api -c Avanade.Academia.PcD.Infra.Database.ProjetoContext --verbose
Para criar outras migrations, caso o modelo seja alterado
dotnet ef migrations add Add<NOME> --project Avanade.Academia.PcD.Infra.Database