Disable Entity Framework Core Migrations.

I have a project that I started development with Code First Migrations. Which is great for development and getting things up and running quickly. But I don’t like it as a solution for deploying to production etc. I’ve done it in the past, and it’s not a terrible solution. But not my preferences anymore.

1. Delete the Migrations folder in your project

Migrations folder

2. Delete the __EFMigrationsHistory table in your database

__EFMigrationHistory database table

That’s it!