Error adding migration with Migrations

Asked

Viewed 54 times

4

I am trying to add a migration and Migration returns the following message:

The Designer Code for this Migration file includes a snapshot of your Current Code First model. This snapshot is used to calculate the changes to your model when you scaffold the next Migration. If you make Additional changes to your model that you want to include in this Migration, then you can re-scaffold it by running 'Add-Migration Addedstoredproc' Again.

1 answer

3


All right. This message means:

The code in mode designer for this migration includes a Snapshop (photo) of your model on Code First (the set of Models here, in the case). This photograph is used to calculate the changes in your model (again, the set), when you pre-mold the next migration. If you make additional changes to your model (again, the set of Models) that you would like to include in this migration, you can pre-shape the migration again using the 'Add-Migration Addedstoredproc' command again.

It’s just a guideline of what to do if something is changed before you run a Update-Database.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.