How to upgrade or downgrade data schema ?

I ll continue with this tutorial to show how to upgrade or downgrade the database schema. Suppose we need to add one more field ManagerAddress in our existing Managers tables, To do this we need to use one feature called Migrations . It allows u s to have an ordered set of steps that describe how to upgrade (and downgrade) our database schema. Each of these steps, known as a migration, contains some code that describes the changes to be applied. Tools → NuGet Package Manager → Package Manager Console Run the Enable-Migrations command in Package Manager Console The two new file get created under Migrations folder : Configuration.cs : It contains the setting that Migrations will use for migrating ManagingContext. <timestamp>_InitialCreate.cs – This is your first migration, it represents the changes that have already been applied to the database to take it from being an empty database to one that includes the Manager and Employee t...