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

后端 未结 21 1615
余生分开走
余生分开走 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:19

    My solution was simple! I was actually having this error when checked out a repo from a svn server. I took following steps to remove error

    1. Cleaned solution
    2. Went to nuget package manager and uninstalled the entity framework.
    3. Removed DataModel and its .cs components.
    4. Shutdown the VS and opened again.
    5. Installed Entity Framework and Recreated entity model.
    6. Check if there is any files needed "Include in the solution". It worked like a charm

提交回复
热议问题