Handling Mistakes and Avoiding Pitfalls

Overview

It is common to run into some challenges while working with migrations and making changes to the data models. In this lesson, we’ll review tips for avoiding common mistakes when working with EF Core.

Removing a migration

At some point, you may discover that a previously added migration is not needed. We can remove any migration not applied to the database using the code sample below:

Get hands-on with 1200+ tech skills courses.