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

后端 未结 3 1743
终归单人心
终归单人心 2020-12-11 06:47

I am getting an error message when using infrastructure namespace in system.data.entity namespace

3条回答
  •  没有蜡笔的小新
    2020-12-11 07:50

    I had a similar problem. I made a reference to System.Data.Entity but it was complaining about System.Data.Entity.Infrastructure. The solution was to add the EntityFramework nuget. Once it's installed it actually removes the original System.Data.Entity reference and points to a new DLL that includes System.Data.Entity and System.Data.Entity.Infrastructure.

提交回复
热议问题