このチュートリアルに従いました
そして、やった
Update-Database -Force -Verbose
それはテーブルをアップグレードしたことを示しました。ただし、エラーが表示されます。
The model backing the 'DbConnection' context has changed
since the database was created.
Consider using Code First Migrations to update the database
(http://go.microsoft.com/fwlink/?LinkId=238269).
私も試しました
Enable-Migrations -ContextTypeName MvcApplication6.Models.DbConnection
ただし、次のように述べています。
Migrations have already been enabled in project 'MvcApplication6'.
To overwrite the existing migrations configuration, use the -Force parameter.
私が間違っていたアイデアはありますか?