Question

I am following a tutorial on Code First Migrations with an existing database (http://msdn.microsoft.com/en-nz/data/dn579398).

The tutorial described when adding a new Data Model to select ADO.NET Entity Data Model. Once you click "Add" you are provided four options one being "Code First From Existing Database" which is tell you to select. The problem is I only have two options. One is "Generate From Database" and Empty Model, none of which mention Code First.

I am using VS2013 and very new to ASP and MVC. Do I need to install an SDK or some other add on.

Cheers, Kevin.

Was it helpful?

Solution

DB to Code First is part of the new EF 6.1 tooling. You can download it from here: http://www.microsoft.com/en-us/download/details.aspx?id=40762 I wrote a blog post about it over here if you want to get a quick overview: http://thedatafarm.com/data-access/first-look-at-beta-of-ef-6-1-designer/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top