0
我被困在命令後不工作:要通過這個tutorial by Tom Dysktra更新數據庫命令初始遷移
這裏
update-database
雖然是我得到的錯誤:
PM> update-database
Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
No pending explicit migrations.
Running Seed method.
System.Data.Entity.Core.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> System.Data.SqlClient.SqlException: Invalid column name 'EmailAddress'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
...
at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
An error occurred while executing the command definition. See the inner exception for details.