The type or namespace name 'Entity' does not exist in the namespace 'System.Data'

后端 未结 21 1596
余生分开走
余生分开走 2020-12-08 12:46

I\'m using WS class and it gave me error when I run the application:

The type or namespace name \'Entity\' does not exist in the namespace \'System.Data\' 
<         


        
21条回答
  •  天命终不由人
    2020-12-08 13:36

    I had just updated my Entity framework to version 6 in my Visual studio 2013 through NugetPackage and add following References:

    System.Data.Entity,
    System.Data.Entity.Design,
    System.Data.Linq
    

    by right clicking on references->Add references in my project. Now delete my previously created Entity model and recreate it again,Built solution. Now It works fine for me.

提交回复
热议问题