때 나는 사용자 나는 다음과 같은 예외가 얻을 엔티티 프레임 워크 마이그레이션의 추가 마이그레이션 명령을Null 참조
System.NullReferenceException: Object reference not set to an instance of an object. at System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetFileName(Project project, String projectItemName) at System.Data.Entity.Migrations.MigrationsCommands..ctor(Object project, Object startUpProject, String configurationTypeName, String connectionStringName, String connectionString, String connectionProviderName, PSCmdlet cmdlet)
어떤 통찰력을?
전체 명령 줄은 무엇입니까? 기존 파일을 가리 켰습니까? 파일이 실제로 있었습니까? – Oded
좀 더 자세한 내용을 게시 할 수 있습니까? 프로젝트 (초기 파일)의 마이그레이션을 이미 활성화 했습니까? 어떤 변화가 있었습니까? –
명령은 "Add-Migration Migration05"와 같습니다. 마이그레이션이 정상적으로 작동했습니다. 프로젝트를 TFS로 옮겼습니다. 이제는 더 이상 작동하지 않습니다. 나는 EF 4.3 –