EntityFramework核心

时间:2017-12-22 11:19:11

标签: c# .net

我已将我的项目从 EntityFrameWork 6 迁移到 EntityFrameWorkCore 2.0 。 但是当通过命令dotnet迁移ef迁移添加init时,它会给我错误。

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.

任何人都可以帮忙吗?

1 个答案:

答案 0 :(得分:-1)

如果您想使用EF Core,我认为您应该安装软件包 Microsoft.EntityFrameworkCore