Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use Entity Framework 6 with Visual Studio 2010?

Our development team (and build servers) successfully use a mixture of Visual Studio 2010 and Visual Studio 2012 for our application.

However, since upgrading from EF5 to EF6, we no longer seem to be able to build with VS2010. Specifically, the build machines won't build at all. VS2010 on my desktop does seem to build, but I get the following errors:

Error   4   Error 10023: Could not find the conceptual model to validate. 
Error   5   Error 10024: Could not find the storage model to validate.
Error   6   Error 10025: Could not find the mapping model to validate.

Edit:

Our build machines do not have .Net 4.5, our Desktop machines (due to IT policy) do have .Net 4.5. On the machines without 4.5, we also get the following, which prevent assembly generation.

Could not find the Conceptual Schema node to embed as a resource for input file
like image 604
Rob Avatar asked Jan 08 '14 11:01

Rob


People also ask

What is difference between Entity Framework 5 and 6?

EF5 is built into the core of . NET 4.5, whereas EF6 has been shifted out, and is open source. This means that you must add the new EF6 assemblies to all of the relevant projects in the solution, in particular the entry project. This means that you must remove assembly System.

How can I change Entity Framework 6 to 5?

In this situation you can upgrade to EF5 using the following steps: Select Tools -> Library Package Manager -> Package Manager Console. Run Install-Package EntityFramework -version 5.0.

Which Visual Studio community is used in Entity Framework Core?

NET 4.6 based applications. Here, you will learn to install and use Entity Framework Core 2.0 in . NET Core applications using Visual Studio 2017.


1 Answers

You can use EF6 runtime with .NET Framework 4/Visual Studio 2010 however EF6 tooling does not support VS2010. EF tooling was updated to work with EF6 for VS2012 and VS2013. In other words on VS2010 and EF6 you can do CodeFirst but not ModelFirst/DatabaseFirst.

like image 155
Pawel Avatar answered Oct 15 '22 01:10

Pawel