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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -