2017-12-22 1 views
0

내 프로젝트를 EntityFrameWork 6에서 EntityFrameWorkCore 2.0에서 마이그레이션했습니다. 하지만 명령을 마이그레이션하는 동안 dotnet ef 마이그레이션은 init을 추가하면 오류가 발생합니다.EntityFramework 코어

An error occurred while calling method 'BuildWebHost' on class 'Program'. Continuing without the application service provider. Error: Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified. 
No DbContext was found in assembly 'Huddle.Wrapper.Admin'. Ensure that you're using the correct assembly and that the type is neither abstract nor generic. 

누구나 도움이 될 수 있습니까? 당신이 EF 코어로 작업 할 때

+1

안녕하세요를 설치해야한다고 생각? –

+0

@ DavidHruška 아니요 EntityFrameWork 패키지를 추가하지 않았습니다. 대신 EntityFrameWorkCore를 추가했습니다. –

답변

-1

, 난 당신이 EntityFramework 어셈블리 (A 너겟 패키지로, 더 나은 또는)을 참조로 추가해야합니까, 당신은 패키지 Microsoft.EntityFrameworkCore

+1

OP가 이미 EntityFrameworkCore 패키지를 추가했음을 나타냅니다. –

+0

ConfigureServices 메소드의 Startup.cs 파일에서 dbcontext 정의를 이미 구성 했습니까? – Dasikely

관련 문제