简体   繁体   中英

Namespace name 'SqlServer' does not exist in the namespace 'System.Data.Entity

When trying to add the hack listed in this question: Entity Framework Provider type could not be loaded? at this answer: https://stackoverflow.com/a/19130718/261405 , I kept getting this error: Namespace name 'SqlServer' does not exist in the namespace 'System.Data.Entity

I was able to get the error to go away after updating my projects from Entity Framework 6.0.2 to 6.1.0.

Basically did this for all projects:

PM> Install-Package EntityFramework

And it started magically working. I hope this helps someone else avoid the frustration that I had.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM