Updating the existing data model

To apply the migration to the existing database schema without losing the existing data, run the following command from our WorldCities project's root folder:

dotnet ef database update

The dotnet ef tool will then apply the necessary updates to our SQL database schema and output the relevant information—as well as the actual SQL queries—in the console buffer, as shown in the following screenshot: 

Once the task has been completed, we should connect to our database using the SQL Server Management Studio tool that we installed back in Chapter 4Data Model with Entity Framework Core—and check for the presence ...

Get ASP.NET Core 3 and Angular 9 - Third Edition now with O’Reilly online learning.

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