- dotnet add package Microsoft.EntityFrameworkCore.SqlServer -v 7.0.0
- dotnet add package DotNetEnv
- Setting database authentication -> Windows Authentication
- In Databases folder, add new database "capstone"
- Create .env file
- Create "DefaultConnection" in .env file
- Assign the variable with your local connection string SQL Server
Ex connection string: Data Source=(SERVER);Initial Catalog=(DBNAME);Integrated Security=True;Connect Timeout=30;Encrypt=True;Trust Server Certificate=True;Application Intent=ReadWrite;Multi Subnet Failover=False
dotnet run --project WebApi