EntityFramework CodeFirst
An utility to create, seed and use database for music posts service.
- Create MySQL Database user with SUPER privilegies in order to create functions
- Provide .env file:
SERVER="localhost"
USER=dbuser
PASSWORD=********
DATABASE=dbname
- Do Migrations first:
dotnet ef migrations add InitialCreate
dotnet ef database update
dotnet ef migrations add TaskMigration
Add-Migration NameOfMigration
Update-Database