Answered by:
Migrate from Entity Framework 4.1 to 6.1

Question
-
User-1188570427 posted
I downloaded the Entity Framework from NuGet, but the option I am going by doesn't come up for me.
Any ideas why?
I am looking for "EF Designer from Database" - http://www.exceptionnotfound.net/entity-framework-for-beginners-creating-a-database-first-model/
The only option that comes up is "Generate from database"
Also, I don't want to do code first. I've never understood the point of it. I have my database set up like I need and want to pull from there.
Wednesday, December 2, 2015 1:14 AM
Answers
-
User1724605321 posted
Hi ,
Then have you upgraded to EF 6?In previous versions of EF the code was split between core libraries (primarily System.Data.Entity.dll) shipped as part of the .NET Framework and out-of-band (OOB) libraries (primarily EntityFramework.dll) shipped in a NuGet package. EF6 takes the code from the core libraries and incorporates it into the OOB libraries .Please refer to link below for upgrading to EF6:
https://msdn.microsoft.com/en-us/data/upgradeef6.aspx .
Best Regards,
Nan Yu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, December 3, 2015 2:06 AM
All replies
-
User1724605321 posted
Hi tvb2727,
The only option that comes up is "Generate from database"After choosing "Generate from database" , you could select the connection to the database you created and choose database object to include in your model . Please refer to links below for detail steps:
https://msdn.microsoft.com/en-us/data/jj206878.aspx .
Best Regards,
Nan Yu
Wednesday, December 2, 2015 6:57 AM -
User-1188570427 posted
Hi tvb2727,
tvb2727
The only option that comes up is "Generate from database"After choosing "Generate from database" , you could select the connection to the database you created and choose database object to include in your model . Please refer to links below for detail steps:
https://msdn.microsoft.com/en-us/data/jj206878.aspx .
Best Regards,
Nan Yu
Yes, but how do I know it is using the EntityFramework.dll now compared to the System.Data.Entity? The reason I want to use the new one EntityFramework 6.1 is because I want to use the .ToString() functionality in my LINQ queries.
Wednesday, December 2, 2015 10:43 AM -
User1724605321 posted
Hi ,
Then have you upgraded to EF 6?In previous versions of EF the code was split between core libraries (primarily System.Data.Entity.dll) shipped as part of the .NET Framework and out-of-band (OOB) libraries (primarily EntityFramework.dll) shipped in a NuGet package. EF6 takes the code from the core libraries and incorporates it into the OOB libraries .Please refer to link below for upgrading to EF6:
https://msdn.microsoft.com/en-us/data/upgradeef6.aspx .
Best Regards,
Nan Yu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, December 3, 2015 2:06 AM