2017-10-03 4 views
0

전통적인 Entity Framework 6과 함께 Entity Framework Core 2.0을 배포/설치할 수 있습니까? 완전히 가능합니까, 아니면 가능하지만 일부 전화가 끊어 지거나 가능하지 않습니까? 이것이 어딘가에 기록되어 있습니까? 나는 그들이 그들이 나란히 있다고 디자인했다고 말한 것 같지만, 이것을 완전히 확인하는 데 어려움을 겪고있다. 감사.EF 6와 함께 Entity Framework Core 2.0을 배포 하시겠습니까?

답변

1

공식 문서에는 다음 내용이 나와 있습니다 (https://docs.microsoft.com/en-us/ef/efcore-and-ef6/side-by-side 참조).

It is possible to use EF Core and EF6 in the same application. 
EF Core and EF6 have the same type names that differ only by namespace, 
so this may complicate code that attempts to use both EF Core 
and EF6 in the same code file. 

If you are porting an existing application that has multiple EF models, 
then you can selectively port some of them to EF Core, 
and continue using EF6 for the others. 

물론 이것은 동일한 프로젝트에서 EF6 및 EF Core를 모두 설치할 수 있다는 것을 의미합니다. 몇 가지 간단한 경우에이 작업을 수행 했으므로 제대로 작동합니다.