Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/entity-framework/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 将referec添加到Visual Web 2012时出错_C#_Entity Framework_Visual Web Developer - Fatal编程技术网

C# 将referec添加到Visual Web 2012时出错

C# 将referec添加到Visual Web 2012时出错,c#,entity-framework,visual-web-developer,C#,Entity Framework,Visual Web Developer,我有以下错误,我不知道如何解决它。我不能添加实体框架,如果我退出它,我就不能使用它。它表示System.Data.Entity中存在System.ComponentModel.DataAnnotations.DataBaseGeneratedAttribute 这里是图像 因此,我无法创建任何带有实体的项目。听起来您使用的是为旧版本的.Net构建的EntityFramework.dll 删除对实体框架的所有引用,并从NuGet重新安装它

我有以下错误,我不知道如何解决它。我不能添加实体框架,如果我退出它,我就不能使用它。它表示System.Data.Entity中存在System.ComponentModel.DataAnnotations.DataBaseGeneratedAttribute 这里是图像


因此,我无法创建任何带有实体的项目。

听起来您使用的是为旧版本的.Net构建的EntityFramework.dll

删除对实体框架的所有引用,并从NuGet重新安装它