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\'
<
I just had the same error with Visual Studio 2013 and EF6. I had to use a NewGet packed Entity Framework and done the job perfectly
tried reinstall - no luck. i had to refresh a table in my model before it would find Entity.
I had the same errors.
I added System.Data.Entity.Repository from Nuget Packages and the errors disappears.
Hope it wil help!
I will add my answer to cover all cases:
My solution was unistalling EntityFramework from NuGet Package Manager and then I was prompted to restart Visual Studio because it couldn't "finalize the uninstall".
I restarted Visual Studio and reinstalled EntityFramework then my problem was solved.
Hope this helps someone!
It's helped me, I uninstalled EF, restarted VS and I added 'using':
using System.Data.Entity;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Infrastructure;
Thanks every body!
I found the solution. not that I understand why but I tried this and it worked!
I just had to add a reference to: System.Data.Entity.Design
and don't have to write any using
in the code.
Thanks!