1.

What do you mean by migration? Write its type.

Answer»

Migration is a tool that was introduced in EF to update the database schema automatically when a model is modified without losing any data or other objects. Migrate Database To LATEST Version is a new database initializer used by it. Entity FRAMEWORK offers two types of migration:    

  • Automated Migration: Entity Framework 4.3 was the first to introduce automated migration so you don't have to manually migrate databases every time you alter a domain class. For example, you MUST also change the domain classes for each time you make a change, but with automated migration, you can simply run a command through the Package Manager Console.
  • Code-based Migration: When you use a code-based migration, you can configure additional aspects of the migration, like SETTING the default value of a column, configuring a computed column, ETC.


Discussion

No Comment Found