✅ Programmatically applying EF migration on startup to MySQL DB in Docker fails
I'm trying to apply my initial migration on server startup to the connected MySql db. Everything is running via docker-compose.
Unfortunately, I'm getting an Argument null exception when attempting to Ensure the database is created - Value cannot be null (Paramater 'Database')
Any ideas as to what I'm doing wrong? The Db is empty. I'd assume EF would create the necessary entry for my project
1 Reply
Same happens when replacing
EnsureCreatedAsync
with MigrateAsync
My connection string was invalid. I was using ,
instead of ;