The type 'System.Data.Entity.DbContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'EntityFramework 2

后端 未结 10 793
无人共我
无人共我 2021-02-02 05:37

I\'ve got one solution - the one project is class library with .edmx data model The other is asp.net web forms project.

when i start the solution I get the following e

10条回答
  •  故里飘歌
    2021-02-02 06:38

    Add the correct reference in *.csproj file. in my cas i have added below in *.csproj file and problem solved.

     
          ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll
          True
        
        
          ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll
          True
        
    

提交回复
热议问题