Fix: CREATE DATABASE permission denied in database 'master' when running dotnet ef database update
EF Core's Migrate() always checks whether the database exists and creates it if not, from a hardcoded master connection. Grant CREATE ANY DATABASE, fix the login's access to the existing database, or ship an idempotent SQL script instead.