O'Reilly logo

ASP.NET MVC with Entity Framework and CSS by Lee Naylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Lee Naylor 2016

Lee Naylor, ASP.NET MVC with Entity Framework and CSS , 10.1007/978-1-4842-2137-2_11

11. Using Entity Framework Code First with an Existing Database

Lee Naylor

(1)Newton-le-Willows, Merseyside, UK

So far all examples in the book have been based on a project started from scratch with a new database; however, in reality this kind of greenfield project is rare. Entity Framework v6.1 onwards now has a feature that supports using a Code First approach with an existing database.

Note

There are no prerequisites for completing this chapter. It does not require any source code downloads or any of the previous chapters to have been completed.

Create a Database to Use with Code First

To create a database, there are various approaches you can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required