MVC 4 프로젝트가 있고 최근에 EF 6.0으로 업그레이드되었습니다. 모델과 dbcontext가 포함 된 프로젝트가 하나뿐입니다. 다음과 같이 내가 마이그레이션을 가능하게 할 수 없습니다, 오류는 다음과 같습니다 지난 2 일간 답변을 인터넷 검색Migrate 오류 - 객체 참조, MigrationsDomainCommand
는
System.NullReferenceException: Object reference not set to an instance of an object. at System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetPropertyValue[T](Project project, String propertyName) at System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(String configurationTypeName, Boolean useContextWorkingDirectory) at System.Data.Entity.Migrations.EnableMigrationsCommand.FindContextToEnable(String contextTypeName) at System.Data.Entity.Migrations.EnableMigrationsCommand.<>c__DisplayClass2.<.ctor>b__0() at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command) Object reference not set to an instance of an object.
, 아무것도 작동하는 것 같다 없습니다. 도와주세요.
작업 항목에서 보류중인 마이그레이션과 관련된 많은 관련 문제가 있습니다. 어쩌면 그 중 일부는 자신 만의 문제 일 수 있습니다. https://entityframework.codeplex.com/workitem/list/basic – Fals