© Adam Freeman 2018

Adam Freeman, Pro Entity Framework Core 2 for ASP.NET Core MVC, https://doi.org/10.1007/978-1-4842-3435-8_17

17. Scaffolding an Existing Database

Adam Freeman

(1)London, UK

The examples in earlier chapters start with the C# classes that define the model and use them to create a database, which is known as code-first development. A different approach is required for projects that need to use an existing database, known as database-first development, and in this chapter, I show you how to use the Entity Framework Core scaffolding feature, which inspects a database and automatically generates a data model. This feature is best suited to simple databases, while more complex projects are better served by manual data modeling, which ...

Get Pro Entity Framework Core 2 for ASP.NET Core MVC now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.