© Brian L. Gorman 2020
B. L. GormanPractical Entity Frameworkhttps://doi.org/10.1007/978-1-4842-6044-9_2

2. Working with an Existing Database

Brian L. Gorman1 
(1)
Jesup, IA, USA
 

In this chapter, we are going to look at what it takes to get up and running with Entity Framework when our project already has an existing database. We’ll conclude with a couple of activities to reverse engineer a database in EFCore and use the database-first approach in EF6 to generate an EDMX model.

Reverse engineering or database first

When working with an existing database, we have many options, and how we accomplish this task depends on what technology we are using. If we are working in .Net Core Entity Framework (EFCore) or EFvNext , we’ll need to perform a reverse-engineering ...

Get Practical Entity Framework: Database Access for Enterprise Applications 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.