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

后端 未结 3 1722
终归单人心
终归单人心 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:35

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

    0 讨论(0)
  • 2020-12-11 07:50

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

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题