Create New Project
- dotnet new web -o NameOfProject -f net8.0 Run Project
- dotnet run Add Swagger API
- dotnet add package Swashbuckle.AspNetCore --version 6.5.0 Watch by Swagger
- dotnet watch run
- dotnet add package Microsoft.EntityFrameworkCore.InMemory --version 8.0
return types/IActionResult
- dotnet add package MySql.EntityFrameworkCore --version 8.0.2
- dotnet add package MySqlConnector
######################## dotnet tool install --global dotnet-aspnet-codegenerator dotnet tool install --global dotnet-ef dotnet add package Microsoft.EntityFrameworkCore dotnet add package Microsoft.EntityFrameworkCore.Tools dotnet add package Pomelo.EntityFrameworkCore.MySql --version 8.0.0
check project errors
- dotnet build
- dotnet ef migrations add InitialCreate
- dotnet ef database update
- dotnet ef migrations remove
dotnet add package Microsoft.AspNetCore.Authentication.JwtBearer dotnet add package System.IdentityModel.Tokens.Jwt
dotnet ef database drop --force