2017-10-03 14 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を同じプロジェクトにインストールすることができます。私はこれをいくつかの単純なケースで自分で行いました。それは大丈夫です。

関連する問題