Junior EF Core

What is the migration snapshot and what is its role?

  • A migration snapshot is a C# file (e.g., ModelSnapshot.cs) automatically created

by EF Core.

  • It represents the current model state.
  • EF uses it to compare changes in future migrations.
  • Located in the Migrations folder, named like

[YourDbContext]ModelSnapshot.cs.

More from Entity Framework Core Tutorial

All questions for this course