#Setup
- Docker installed on your system.
- .NET Core SDK installed.
- Entity Framework Core CLI tools installed.
docker pull mariadb
docker run --detach --name todo-db --env MARIADB_ROOT_PASSWORD=password --env MARIADB_DATABASE=todo-db -p 3306:3306 mariadb:latest
dotnet add package Pomelo.EntityFrameworkCore.MySql
dotnet ef dbcontext scaffold "server=localhost;port=3306;user=root;password=password;database=todo-db" Pomelo.EntityFrameworkCore.MySql -o Models
dotnet ef migrations add InitialCreate
dotnet ef database update
dotnet run