Run Code First Migration Seed Method without a migration

If you just need to run Seed() again, and nothing has changed that would cause a new migration to be added, just call Update-Database again with no flags and it will say ‘No pending migrations’, and run Seed() again for you. Seed() is called every time the DB is updated, regardless if there are new migrations or not.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)