Option 1
- Run docker-compose up csharp
- check launch.json file and config it
- Run debuger with current project
options 2
- winpty docker run -it --name acb-app -v /D:/git/acb-app:/home -p 4141:4141 170a
- Set launch.json { "name": ".NET Core Attach", "type": "coreclr", "request": "attach", "processId": "${command:pickProcess}" },
- Debug is nomarly Can web use extionsion for vsCode C#... too
We have to install Remote Development in vscode first (very important)!!!
dotnet ef migration export export PATH="$PATH:$HOME/.dotnet/tools/"
- dotnet ef migrations add InitialIdentity --context AuthDbContext
- dotnet ef database update -context AuthDbContext
create class with scaffod => dotnet ef dbcontext scaffold "Server=172.17.0.5;Database=ACB-System;user=root;pwd=123;" "Pomelo.EntityFrameworkCore.MySql" -o Models -f