我已经将我的项目从EntityFrameWork 6迁移到EntityFrameWorkCore 2.0。但是,尽管命令dotnet迁移添加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.有人能帮忙吗?
发布于 2018-02-02 11:05:09
当您想使用EF时,我认为您应该安装软件包Microsoft.EntityFrameworkCore
https://stackoverflow.com/questions/47940629
复制相似问题