Infrastructure namespace name does not exist in system.data.entity namespace

I get an error when using the infrastructure namespace in the system.data.entity namespace

+5
source share
3 answers

You need to add a reference to the assembly .NET System.Data.Entity.dll .

+4
source share

You also need a link to EntityFramework, or you will get the same error.

+16
source share

I had a similar problem. I made a reference to System.Data.Entity , but he complained about System.Data.Entity.Infrastructure . The solution was to add an EntityFramework nuget . After installing it, it actually removes the original System.Data.Entity link and points to a new DLL, which includes System.Data.Entity and System.Data.Entity.Infrastructure .

+1
source share

All Articles