I was following this tutorial (On linux and converted to F#)
Migrations were created successfully (3 files in the Migrations
directory.) But dotnet ef database update
says everything is up to date and dotnet ef migrations list
says no migrations found. When I check the created sqlite file manually it contains only an empty __EFMigrationsHistory table.
The context.Database.Migrate()
and context.Database.EnsureCreated()
methods also don't pick up any migrations.
I'm thinking maybe my fsproject is missing reference to the Migrations folder but I'm not sure what a reference to that would look like.
Thanks for you help!
Here is what I did to get migrations working.