© Adam Freeman 2018
Adam FreemanPro Entity Framework Core 2 for ASP.NET Core MVChttps://doi.org/10.1007/978-1-4842-3435-8_17

17. Scaffolding an Existing Database

Adam Freeman1 
(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 I ...

Get Pro Entity Framework Core 2 for ASP.NET Core MVC 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.