dotnet watch run --project Ladaer.BackEnd/Ladaer.BackEnd.csproj

dotnet watch run --project ladaexpress.vn/ladaexpress.vn.csproj
start https://localhost:7284/swagger/index.html


Script-Migration -Project Ladaer.BackEnd -From Ladaer.3.1.1 -To Ladaer.3.1.2 
dotnet ef migrations script Ladaer.3.0.7 Ladaer.3.0.9 -o Update_3.0.7_to_3.0.9.sql -p Ladaer.BackEnd\Ladaer.BackEnd.csproj

dotnet ef migrations add Ladaer.3.0.10 -p Ladaer.BackEnd\Ladaer.BackEnd.csproj
# Publish chuẩn
dotnet publish ladaexpress.vn\ladaexpress.vn.csproj -c Release -o ladaexpress.vn\bin\Release\net9.0 -p:PublishReadyToRun=true
dotnet publish Ladaer.BackEnd\Ladaer.BackEnd.csproj -c Release -o Ladaer.BackEnd\bin\Release\net9.0 -p:PublishReadyToRun=true

# Chạy project Ladaer.BackEnd
dotnet run --project Ladaer.BackEnd/Ladaer.BackEnd.csproj
dotnet run --project Ladaer.BackEnd/Ladaer.BackEnd.csproj --environment Development
dotnet run --project Ladaer.BackEnd/Ladaer.BackEnd.csproj --environment Production

# Trust SSL certificate khi chạy
dotnet dev-certs https --trust
dotnet dev-certs https --clean
dotnet dev-certs https

# Chạy với HTTPS và trust SSL
dotnet watch --project Ladaer.BackEnd/Ladaer.BackEnd.csproj --urls "https://localhost:7284;http://localhost:5284" --no-restore --property WarningLevel=0
dotnet run --project Ladaer.BackEnd/Ladaer.BackEnd.csproj --urls "https://localhost:7284;http://localhost:5284" --no-restore --property WarningLevel=0
dotnet run --project Ladaer.BackEnd/Ladaer.BackEnd.csproj --environment Development --urls "https://localhost:7284;http://localhost:5284" --no-restore

# Build project
dotnet build Ladaer.BackEnd/Ladaer.BackEnd.csproj
dotnet build Ladaer.BackEnd/Ladaer.BackEnd.csproj --configuration Release

# Clean và rebuild
Stop-Process -Name "dotnet" -Force; dotnet run --project Ladaer.BackEnd/Ladaer.BackEnd.csproj --urls "https://localhost:7284;http://localhost:5284" --no-restore --property WarningLevel=0
dotnet clean Ladaer.BackEnd/Ladaer.BackEnd.csproj
dotnet build Ladaer.BackEnd/Ladaer.BackEnd.csproj --no-restore

# Restore packages
dotnet restore Ladaer.BackEnd/Ladaer.BackEnd.csproj

# Test project
dotnet test Ladaer.BackEnd/Ladaer.BackEnd.csproj

# Git commands - Commit và Push code
git add .
git add -A
git status
git commit -m "Update: Mô tả thay đổi"
git commit -m "Fix: Sửa lỗi"
git commit -m "Feature: Thêm tính năng mới"
git push origin main
git push origin develop
git push origin feature/tên-nhánh

# Git workflow cơ bản
git pull origin main
git checkout -b feature/tên-nhánh-mới
git add .
git commit -m "Feature: Tên tính năng"
git push origin feature/tên-nhánh-mới
git checkout main
git merge feature/tên-nhánh-mới
git push origin main

# Git log và history
git log --oneline
git log --graph --oneline --all
git show HEAD
git diff HEAD~1

