我被上面提到的错误困在我的项目中。我多次尝试过copy local=true
和<private>true</private>
,但这并不能解决我的问题。我还有其他错误,例如:
The type or namespace name 'Transcations' does not exist in the namespace 'system'
the type or namespace name 'web matrix' does not exist in the namespace 'system'
the type or namespace name 'optimization' does not exist in the namespace 'system.web'
Error 18 The type or namespace name 'IMigrationMetadata' could not be found (are you missing a using directive or an assembly reference?)
Error 23 The type or namespace name 'HttpConfiguration' could not be found (are you missing a using directive or an assembly reference?)
Error 2 The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
Error 3 The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
Error 4 The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
Error 6 The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
还有更多......
我有所有的nuget包。请帮助我。
答案 0 :(得分:-1)
如果查看documentation,System.Data.Entity
程序集中包含EntityFramework.dll
命名空间。在Visual Studio中打开Package Manager并运行此命令以通过NuGet安装它。
Install-Package EntityFramework