Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Code First From Database' Template not showing in Visual Studio Entity Data Model Wizard

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 enter image description here

I have installed EF 6.1 using nuget, I am using Visual Studio 2012 Ultimate..What am i missing?

like image 974
kurasa Avatar asked Mar 25 '14 22:03

kurasa


People also ask

How do I use code first in Entity Framework?

Step 1 − First, create the console application from File → New → Project… Step 2 − Select Windows from the left pane and Console Application from the template pane. Step 3 − Enter EFCodeFirstDemo as the name and select OK. Step 4 − Right-click on your project in the solution explorer and select Manage NuGet Packages…

Do we need EDMX XML file for EF code First approach?

Code first approach lets us transform our coded classes into database application, which means code first lets us to define our domain model using POCO (plain old CLR object) class rather than using an XML-based EDMX files which has no dependency with Entity Framework.


1 Answers

It turns out that to enable the "Code First From Database" template, you need to download and install the EF Tools.

like image 159
kurasa Avatar answered Oct 02 '22 21:10

kurasa