Forgot to add few columns to Entity Framework migration

preview_player
Показать описание
When few columns missed in a EF migration, you can simply add another migration which will scaffold new properties for new columns on the same table. But, this video is for someone in a worse situation which he cannot afford another migration to the database for the same table.

Here what I'm doing in this video...
I'm going to delete the table (RentRolls) from the database, clear recent migration data from Migrations table that is being maintained by Entity Framework in the same database.

This means I'll remove every trace of the recent applied migration for RentRolls table.

After this I'll again add a new migration which scaffolds everything.

Apps I’ve created for Android and Windows, please give a try
------------------------------------------------------------------------
RSS Feed Fetcher (RSS feed reader for Windows)

RSS Feed Fetcher (RSS feed reader for Android)

Podcast Fetcher (Podcast player for Windows)

Podcast Fetcher Lite (Free podcast player for Windows)

Battery Level Alarm (Battery app for Windows)
Рекомендации по теме
Комментарии
Автор

but when I have a Important data into that table so how i can i do without removing that table

pawannikhare