© 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 ...

Get ASP.NET MVC with Entity Framework and CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.