0

MVC3 プロジェクトをアップロードしました。これはシンプルなブログです。最初はうまく機能しますが、数時間後には! 次のエラーが表示されます(エラーを表示するためにカスタムエラーをオフにしました)

The model backing the 'SiteContext' context has changed since the database was created. Either manually delete/update the database, or call Database.SetInitializer with an IDatabaseInitializer instance. For example, the DropCreateDatabaseIfModelChanges strategy will automatically delete and recreate the database, and optionally seed it with new data.

これを解決するには、データベースを手動で削除してから再度作成し、作成したバックアップに復元する必要があります。しかし、2時間後に再びエラーが発生します!

何が原因なのですか??

4

1 に答える 1