entity framework - Code First Migration -
I have read the first code migration from MSDN. But if my Database Team data base changes, if any one / update some fields from a table, which is to migrate the changes?
I mean my code is the first model update that changes?
Please help me. I'm using unit framework 6.1.
I did not understand your problem completely because the real purpose of migration is to update the updated database field or table Used to be . All you need to do is Launch:
Add-Migration Now Off Migration and Updates-Database. In package manager console.
As you can see in the migration named "Name Off Migration", you have 2 different ways: From above and below you can update your database with that change (up) or back ( Below) can come.
Comments
Post a Comment