I\'m using EF and generated .EDMX from it but then I only wanted it to be used for automated generation of Class Files.
I then used the Class Files to create a Enti
Copy and paste the connectionstring to your WEBAPI Project web.config file will solve the issue.
It's dumb, but I had this error that was fixed by a Rebuild All
!!
Might as well have turned it off and on again....
The easiest solution:
Remove current edmx file and related connection string in app.config and add Edmx item with same name as previous again.
this worked for me.