Error before updating scaffolding from new db schema
-Force You can only enable migrations once for each Db Context.If you need to overwrite your existing migration configuration you can use -Force.
Simply do an update-database and specify the target migration name.This cs file is placed in the same folder as the configuration file for the Db Context you are targeting.-Project Name If your migrations should not be placed in your default project you can utilize the -projectname parameter -Configuration Type Name If you have multiple Db Context in your project you will need to indicate which is going to have the database update. The Configuration Type Name is the name of your Configuration class in your migration folder.Code first migrations in Entity Framework has existed since Entity Framework 4.3.But migrations are still accessed from the package manager console and it's not always easy to remember the commands and the parameters that go with them.It can only be used if the -script parameter is used as well.
You use it for specifying which migration your target database is running.
The Configuration Type Name is the name of your Configuration class in your migration folder.
20 July 09 Note – The new version of the Rails Windows installation guide is there.
When you make changes to your domain model and need them added into your database you create a new migration. In it's simplest form you need only to provide a migration name.
The Add-Migration command scaffolds your changes into a cs file.
However you can only re-scaffold if the migration is not yet applied to database.