This article is a mirror article of machine translation, please click here to jump to the original article.

View: 21613|Reply: 0

[Source] References to other projects' EF entity models

[Copy link]
Posted on 8/25/2016 10:00:32 PM | | | |
Error 1 Type "System.Data.Entity.DbContext" is defined in an unreferenced assembly. A reference to the assembly "EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" must be added.


Today, when using VS2012 for MVC4 project development, I found such an error, which is very strange. Everything that should be quoted is quoted. Finally, I found a lot of information and found a solution.

1. Tools - "Library Package Manager - " to manage the solution's nuget packages
2. Select the installed package, find EntityFramework, and click Manage


Since I was using EF's "Data Context Object" in my Taobao_DAL, he gave me an error. So we have to check it and install EF5.0. Finally we found a few more references.

Of course I'm using VS2012, if you have a lower version, you may need to install Nuget first. You can uninstall and then add it. Finally, just look at the quotation to see if it is there.





Previous:Share a base64 online decoding image site
Next:Unable to locate the solution directory. Please ensure that the solution has ...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com