'Code First From Database' Template not showing in Visual Studio Entity Data Model Wizard
C#Entity FrameworkVisual Studio-2012Entity Framework-6C# Problem Overview
according to Microsft in this article is should see an option 'Code First From Database' when adding a new item to the project under 'ADO.NET Entity Data Model' in step 3.
I see the following only
I have installed EF 6.1 using nuget, I am using Visual Studio 2012 Ultimate..What am i missing?
C# Solutions
Solution 1 - C#
It turns out that to enable the "Code First From Database" template, you need to download and install the EF Tools.
Solution 2 - C#
- Install "Entity Framework Power Tools Beta 4" (Tools -> Extensions and Updates)
- Right click project, select "Entity Framework", and "Reverse Engineer Code First"
Solution 3 - C#
Probably my response is too late! but for others "internautas" probably it works!... In my case the problem was the .NET Framework version, if you create an application and you use a .NET framework is less or equal 3.5 you don't see the option, but if you use 4 or 4.5 the option is visible
Cheers from El Salvador, Central America.
Solution 4 - C#
tl;dr
Solution: Download EF6.1.3 updated version from MS download page
In detail
I found all of the previous answers leading towards a solutions, but desipe others claiming to have successfully fixed and issue - I wasn't feeling the same.
But reinstalling eftools.msi got me thinking - why would I reinstall what's already installed when I know that I'm still missing "code first" option. and so I got myself fresh install from microsoft downloads page which for today offers 6.1.3 version.
Success! And it's time to return to EntityFramework tutorial :)
Solution 5 - C#
You should check out this EntityFramework Reverse POCO Code First Generator project which consists of T4 templates to do Code First from an Existing Database.
Those templates are very easy to use, fully customizable, and are much more complete than the original EF wizard.
Strongly recommend it.
Solution 6 - C#
Try to Update the Visual studio or to download EF tools.