プロジェクトの1つでEntityFrameworkを初めて使用しようとしています。コードファーストワークフローを使用して、データベースを自動的に作成しています。データベースの最初のセットアップは正常に機能しました。現在、クラスの変更をデータベースに移行しようとしています。
私が読んでいるチュートリアルでは、パッケージマネージャーコンソールで「Enable-Migrations」を実行する必要があると書かれています。しかし、これを行うと、次のエラーが発生します
PM> Enable-Migrations
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at System.Data.Entity.Migrations.Design.ToolingFacade.BaseRunner.FindType[TBase](String typeName, Func`2 filter, Func`2 noType, Func`3 multipleTypes, Func`3 noTypeWithName, Func`3 multipleTypesWithName)
at System.Data.Entity.Migrations.Design.ToolingFacade.GetContextTypeRunner.RunCore()
at System.Data.Entity.Migrations.Design.ToolingFacade.BaseRunner.Run()
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
私は何が間違っているのですか?ローダーの例外プロパティを取得するにはどうすればよいですか?また、NuGetはEF 5.0を使用していると言っていますが、プロジェクト参照のEntityFrameworkアイテムのVersionプロパティは4.4.0.0と言っています。これが関係しているかどうかはわかりません。