EntityFramework包version =&"6.1.3& quot;和Web配置版本6.0.0.0? [英] EntityFramework package version="6.1.3" and Web config version 6.0.0.0?
问题描述
我创建了一个包含EF 6.1.3的ASP.NET项目
I created a ASP.NET project which included EF 6.1.3
它显示程序包版本="6.1.3",并在Web.config版本6.0.0.0中显示
Its show package version="6.1.3" and in Web.config version 6.0.0.0
但是在web.config中,我仍然有这个:
However in web.config i still have this:
section name="entityFramework"
type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection,
EntityFramework, Version=6.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" requirePermission="false"
所有其他从属程序集均已正确更新.
All other dependent assemblies are updated correctly.
它在服务器上给出了错误
Its gives an error on server
类型或名称空间名称'Infrastructure'在命名空间'System.Data.Entity
The type or namespace name 'Infrastructure' does not exist in the namespace 'System.Data.Entity
我认为这是由于版本问题所致.我应该自己更新吗?
I thought this is due to version problem. Should I have updated this myself?
推荐答案
版本6.1.3的实际产品版本为6.0.0,它们是同一回事.请参阅Microsoft下载中心
Version 6.1.3 that you download through NuGet has an actual product version of 6.0.0, they are the same thing. See Microsoft Download Centre
Your error with namespace 'infrastructure' is discussed here and could just need a reference to System.Data.Entity.dll
这篇关于EntityFramework包version =&"6.1.3& quot;和Web配置版本6.0.0.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!