In EntityFrameworkCore, if you want to create migration files for your DbContext, you would like to run a command like this > dotnet ef migrations add InitMigration Do you know how the 'migrations add' works? There are various ways to create DbContext in the migration, do you know that? In this article, I will give … Continue reading How does entity framework migration deal with DbContext?