Entity Framework
Entity Framework -
- Create Database if not exists
- Drop database always
- Drop database if model changes
Migrate to Latest Version: Look for it in migration folder to see new migrations
Enable-Migrations in Package Manager Console
Add-Migration : Adds migrations in Migration Folder
Update Database - Migrations --> Changes Database
OR
Let DB Initializer handle it by settiing --> Migrate to Latest Version
eg:
When 2 developers working together:
One dev changes model --> Says "ADD-MIGRATION" --> Adds to folder, and it moves in source code.
Other dev --> don't do anything
As DB Initializer is set to " Migrate to Latest Version"
Congratulations @jotdeol! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Do not miss the last post from @steemitboard:
Vote for @Steemitboard as a witness to get one more award and increased upvotes!